Question: Project 8 March 5, 2021 (Use functions exclusively ) C++ ONLY Write a C++ program that reads a students last name and first name followed
Project 8 March 5, 2021 (Use functions exclusively ) C++ ONLY
Write a C++ program that reads a students last name and first name followed by an unknown number of numeric grades [0 100] in a file. The grade of -1 marks the end of the list of grades. The number of records on the file is unknown, read and process each record until end of file is encountered.
Compute the average of each students 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
F 0 - 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 88 34 100 34 34 98 98 39 0 -1
Mark Henry 80 90 80 80 90 87 100 67 88 00 45 98 78 -1
Eof
########GRADE REPORT########
First Name Letter Grade Average
Sam C 71.2
Mary A 91.8
Mark B 88.0
###########################################################################
Class average B 87.2
The student with the highest average is Mary Smith (99.99)
The student with the lowest average is Sam Houston (99.99)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
