Solved

A Numeric Integer Grade Is Between 50 and 99

Question 6

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents