Answer to Question #273724 in C++ for maks

Question #273724

Pls help me with thissss..

Create a C++ program based on the requirements below:

After get a grade from the user, the program will determine what will be the corresponding grade equivalent.

Conversion Table

101 and higher - Out of Range

90 to 100 - Excellent

80 to 89 - Very Good

75 to 79 - Good

74 and below - Failed

 

Sample Output:

Enter Grade: 79

The equivalent of 79 is Good!


1
Expert's answer
2021-11-30T18:18:01-0500
string grade(int n) {
    if (n > 100) return "Out of Range";
    else if (n >= 90 && n <= 100) return "Excellent";
    else if (n >= 80 && n <= 89) return "Very Good";
    else if (n >= 75 && n <= 79) return "Good";
    else return "Failed";
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS