Question: Write a program that accepts a numerical value x from 0 to 100 as input and computes and displays the corresponding letter grade given by

Write a program that accepts a numerical value x from 0 to 100 as input and computes and displays the corresponding letter grade given by the following table.

A. x ≥ 90

B. 80 ≤ x ≤ 89

C. 70 ≤ x ≤ 79

D. 60 ≤ x ≤ 69

F. x < 60

a. Use nested if statements in your program (do not use elseif).

b. Use only elseif clauses in your program.

Step by Step Solution

3.43 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a include int main int x printfEnter a numerical value x from 0 to 100 scanfd x Nested if sta... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Introduction Mechanical Engineering Questions!