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 tests out of 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.
Declare a character array to store the students name and surname.
Declare an array of integers to store the grades for tests.
Prompt the user to enter the students name and surname and the grade for each test.
Display the students name, grades recorded, and average grade in a tabularcolumn format.
Calculate and display the average grade of the student formatted to display decimals
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
