Question: implement a complete program that uses a cascading if - else statement In C + + . The goal is to output a letter grade
implement a complete program that uses a cascading ifelse statement In C The goal is to output a letter grade based on the an integer score, to be input by the user.
Any score that's negative gets the message "Invalid Score".
Otherwise, if score is less than the grade is F
Otherwise, if the score is less than the grade is D
Otherwise, if the score is less than the grade is C
Otherwise, if the score is less than the grade is B
Otherwise in all other cases the grade is A
Notice the logic above doesn't use any logical operators. Each condition should just be a single inequality.
Below are sample outputs from six separate runs of the program to illustrate. Your output should be identical given the same input. Do not use a loop
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
