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.


```
int value = numeric_grade/10;
switch(value)
{
case 9: letter_grade = ‘A’;
break;
case 8: letter_grade = ‘B’;
break;
case 7: letter_grade = ‘C’;
break;
case 6: letter_grade = ‘D’;
break;
default: letter_grade = ‘F’;
break;
}
```

Computer Science & Information Technology

You might also like to view...

Why do we need search engines? What do search engines do? Answer both of these questions in great detail.

What will be an ideal response?

Computer Science & Information Technology

You are given a group communication system with a totally ordered multicast operation, and a failure detector. Is it possible to construct view-synchronous group communication from these components alone?

What will be an ideal response?

Computer Science & Information Technology

A split form automatically displays in Form view in the top half of the form and in _________ in the lower half of the form

A) a second Form view B) Design view C) Layout view D) Datasheet view

Computer Science & Information Technology

Which two components would be found in a home server computer? (Select two.)

A) Minimum RAM B) Multiple hard drives in a RAID array configuration C) Multiple KVM switches D) Multiple processors E) Dual monitors

Computer Science & Information Technology