Write multiway if-else statements in which letter grades are assigned based a numeric grade based on this “ten point” scheme: if the numeric grade is not less than 90, the letter grade is an A, if the numeric grade is not less than 80, the letter grade is a B, if the numeric grade is not less than 70, the letter grade is C, if the numeric grade is not less than 60, the letter grade is D, otherwise the letter grade is F.
What will be an ideal response?
if (numeric_grade >= 90)
letter_grade = ‘A’;
else if (numeric_grade >= 80)
letter_grade = ‘B’;
else if (numeric_grade >= 70)letter_grade = ‘C’;
else if (numeric_grade >= 60)
letter_grade = ‘D’; else
letter_grade = ‘F’;
You might also like to view...
A(n) ____ reunites the flow of control after a fork.
A. join B. connector C. lozenge D. fork end
A form is an interface used to enter or modify data in a field or record
Indicate whether the statement is true or false
You can connect ____ to more than one PivotTable to filter the data.
A. PivotCharts B. slicers C. field lists D. row headings
There must be 24 GPS satellites in orbit at any given time in order to have at least ____ satellites in view from anywhere on the planet.
A. three B. four C. ?five D. six