Question: USE STANDARD C++ FUNCTIONS NOTHING THATS ON CHEGG Write a C++ program that roads a students last name and first name followed by an unknown
Write a C++ program that roads a students last name and first name followed by an unknown number of numeric grades (0 - 100 in a fie. The grade of -1 marks the end of the ist of grades. The number of records on the file is unknown, road and process each record until end of file is encountered. Compute the average of each student's grades after dropping the lowest grade (round average to the nearest integer before assigning letter grade. Also compute and print the first name and last name of the student with the highest average and the lowest average Assign letter grades using the scale below A 91 - 100 B 80-90 C 70-79 D 60-69 FO-59 Input format: Sam Houston 100 90 87 23 12 67 95 45 67 88 34-1 Mary Smith 30 20 90 90 90 90 84 34 100 34 34 9898 390-1 Mark Henry 80 90 80 80 90 87 100 67 88 00 45 98 78-1 Eol WWW.GRADE REPORT First Name Letter Grade Sam Average 712 91.8 Mary A Mark B 88.0 NDRO 87.2 Class average B The student with the highest average is Mary Smit 199.99) The student with the lowest average is Sam Houston 199.99)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
