subject

Can you structure this code in if-statements?

public int getdata(int datanumber)
{
switch(datanumber)
{
case 1: return quizscore1;
case 2: return quizscore2;
case 3: return quizscore3;
default: return (integer) null;
}
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 15:10
What role did women fill during world war ii?
Answers: 1
question
Computers and Technology, 23.06.2019 23:40
Which of the following calculates the total from the adjacent cell through the first nonnumeric cell by default, using the sum function in its formula? -average -autosum -counta -max
Answers: 1
question
Computers and Technology, 24.06.2019 06:30
Ineed to know the anwser to all these questions
Answers: 2
question
Computers and Technology, 24.06.2019 22:00
Aobject is used for displaying the results of a question based on stored data. a. query b. report c. table d. form
Answers: 2
You know the right answer?
Can you structure this code in if-statements?

public int getdata(int datanumber)
...
Questions
question
Mathematics, 13.09.2020 05:01
question
Physics, 13.09.2020 05:01
question
English, 13.09.2020 05:01
question
Mathematics, 13.09.2020 05:01
question
English, 13.09.2020 05:01
question
Mathematics, 13.09.2020 05:01
question
Mathematics, 13.09.2020 05:01
question
Biology, 13.09.2020 05:01
question
Mathematics, 13.09.2020 05:01
question
Mathematics, 13.09.2020 05:01
question
Mathematics, 13.09.2020 05:01
question
Mathematics, 13.09.2020 05:01
question
Mathematics, 13.09.2020 05:01
question
Mathematics, 13.09.2020 05:01
question
Physics, 13.09.2020 05:01
question
Mathematics, 13.09.2020 05:01
question
Mathematics, 13.09.2020 05:01
question
Mathematics, 13.09.2020 05:01
question
Mathematics, 13.09.2020 05:01