Write a C++ program that computes a student’s grade for an assignment as a percentage given the student’s score and total points. The final score must be rounded up to the nearest whole value using the ceil function in the header file. You must 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 must print to the console “Excellent” if the grade is greater than or equal to 90, “Well Done” if the grade is less than 90 and greater than or equal to 80, “Good” if the grade is less than 80 and greater than or equal to 70, “Need Improvement” if the grade is less than 70 and greater than or equal to 60, and “Fail” if the grade is less than 60.If my input isWeems 83% .83333 Well DoneDale 85% .85000 Well DoneRichards 95% .95000 ExcellentSmith 60% .60000 Need Improvement Tomlin73% .73333 GoodBird 75% .75000 Good
In addition, you must print to the console “Excellent” if the grade is greater than or equal to 90, “Well Done” if the grade is less than 90 and greater than or equal to 80, “Good” if the grade is less than 80 and greater than or equal to 70, “Need Improvement” if the grade is less than 70 and greater than or equal to 60, and “Fail” if the grade is less than 60.
If my input is
Weems 83% .83333 Well DoneDale 85% .85000 Well DoneRichards 95% .95000 ExcellentSmith 60% .60000 Need Improvement Tomlin73% .73333 GoodBird 75% .75000 Good
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here