Question: Write a c++ program that contains the following functions (For this question, you can come up with the list of names and test scores, you
Write a c++ program that contains the following functions (For this question, you can come up with the list of names and test scores, you can reuse some of the names from the project file. Test with at least 10 students
A function that reads in the students' names along with their 5 testscores from a file and into a structure. The struct should have a component for the student's first and last name, testscores, average and grade.
A function that takes in a single student, and calculates their average testscore and fills it in the appropriate position in the struct
A function that uses the above function to fill up the average of every student.
A function that takes in a single student, and determines their grade and puts it in the appropriate location in the struct.
A function that uses the above function to fill up the grade of every student.
A function that takes in all the students and returns the last name of the student with the highest average
A function that takes in all the students and outputs their first and last name along with their highest testscore
A function that takes in all the students and returns the number of students that get a C and above.
A function to print the complete details of a student in the following manner
Name: Kyle Trager
Test 1: 99
Test 2: 99
Test 3: 100
Test 4: 99
Test 5: 99
Highest testscore: 100 in Test 3
Average: 99.2
Grade: A
Everything up to concept of structs is allowed.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
