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, 22.06.2019 04:30
How can you know if the person or organization providing the information has the credentials and knowledge to speak on this topic? one clue is the type of web site it is--the domain name ".org" tells you that this site is run by a nonprofit organization.
Answers: 2
question
Computers and Technology, 23.06.2019 04:00
In a word processing program, such as microsoft word, which feature to you choose the desired picture enhancement?
Answers: 2
question
Computers and Technology, 23.06.2019 15:20
In a game with three frames, where will the objects on layer 1 appear? a. next to the play area b. in the middle of the game c. behind everything else d. in front of everything else
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
You know the right answer?
Can you structure this code in if-statements?

public int getdata(int datanumber)
...
Questions
question
Mathematics, 20.10.2020 05:01
question
English, 20.10.2020 05:01
question
Mathematics, 20.10.2020 05:01
question
Mathematics, 20.10.2020 05:01
question
Health, 20.10.2020 05:01
Questions on the website: 13722363