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.


```
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’;
```

Computer Science & Information Technology

You might also like to view...

The ________ in Word displays Microsoft Office Backstage view

A) FILE tab B) Quick Access Toolbar C) Title bar D) Status bar

Computer Science & Information Technology

Slides can be moved and deleted in ________ view using the slide thumbnails

A) Slide Show B) Normal C) Slide Sorter D) Reading

Computer Science & Information Technology

The date February 16, 2021, is stored in cell B1. The last day of the semester (May 7, 2021) is stored in cell B2. Which function calculates the number days until the end of the semester?

What will be an ideal response?

Computer Science & Information Technology

Dynamic binding determines which function should be called at runtime, based on the ____ type making the call.

a. object b. class c. function d. operator

Computer Science & Information Technology