Question: Write a C++ program that computes a students grade for an assignment as a percentage given the students score and the total points. The final

Write a C++ program that computes a students grade for an assignment as a percentage given the students score and the total points. The final score should be rounded up to the nearest whole value using the ceil function in the header file. You should also display the floating-point result up to 5 decimal places. The input to the program must come from a file containing a single line with the score and total separated by a space. In addition, you should print to the console Excellent if the grade is greater than 90, Well Done if the grade is greater than 80, Good if the grade is greater than 70, Need Improvement if the grade is greater than or equal to 60, and Fail if the grade is less than 50.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!