subject

Can you format the question in if-statements or other forms using this code segment?

public void setquiz( int quiz, int grade )
{
switch( quiz )
{
case 1: // if quiz == 1
grade1 = grade; //where was grade1 declared?
break; // otherwise execution will continue through the next case block
case 2: // if quiz == 2
grade2 = grade;
break;
}
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
in 2007, floridians died in alcohol-related collisions.a.  501b.  1,051c.  5,015d.  10,839
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
Who is the first president to use social media as part of his campaign strategy
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
What are listed in the vertical columns across the top of the event editor? a. file names b. conditions c. check marks d. action types
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
When is a chart legend used a. all the time b. whenever you are comparing data that is the same c. whenever you are comparing multiple sets of data d. only for hand-drawn charts
Answers: 2
You know the right answer?
Can you format the question in if-statements or other forms using this code segment?

pu...
Questions
question
Chemistry, 22.04.2020 11:57
question
Mathematics, 22.04.2020 11:57
question
Health, 22.04.2020 11:57
question
Mathematics, 22.04.2020 11:57
Questions on the website: 13722360