Question: Write a C + + program that simulates recording and analysing the grades of a student. The program should allow the user to enter the

Write a C++ program that simulates recording and analysing the grades of a student. The program should allow the
user to enter the name and surname of a student, and then enter the scores of 5 tests (out of 100). After all the
grades have been entered, the program should display the name, grades recorded, and average grade in a tabular/
column format. The program should also allow the user to search for a specific grade to see if it was recorded and
identify the number of the test where the grade was found.
1. Declare a character array to store the students name and surname.
Declare an array of integers to store the grades for 5 tests.
2. Prompt the user to enter the students name and surname and the grade for each test.
3. Display the students name, grades recorded, and average grade in a tabular/column format.
4. Calculate and display the average grade of the student (formatted to display 2 decimals).
5. Prompt the user to enter a grade to search for. Perform a linear search for the grade in the array. Display
whether the grade was recorded and, if so, for which test.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!