Question: PROGRAMMING: IF LOOPS & INPUT FROM DATA FILE ASSIGNMENT INSTRUCTIONS OVERVIEW You will write a C++ program that computes a student's grade for an assignment
PROGRAMMING: IF LOOPS \& INPUT FROM DATA FILE ASSIGNMENT INSTRUCTIONS OVERVIEW You will 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. INSTRUCTIONS 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. 1. Use the Lab Template you set-up last week to function as the foundation of your program. 2. Add the variables \& math computations necessary to complete the calculations. Make sure you use the ceil function in the header file. 3. The input to the program must come from an external data file that you create. You will create a text file. The file will contain a single line with the score and total separated by a space. 4. Display the floating-point result up to 5 decimal places. Output the results to the screen. The output must be labeled clearly and formatted neatly. 5. Include proper formatting, and appropriate comments in your code. 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
