Solved

A Numeric Integer Grade Is Between 50 and 99

Question 28

Essay

A numeric integer grade is between 50 and 99.Using integer division or otherwise obtain a int value that is 5,6,7,8,or 9 from the numeric grade.Write code using a switch statement using this number in the selector expression that assigns letter grades based on this 10 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.

Correct Answer:

verifed

Verified

int value = numeric_grade/10;
switch(val...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions