Question: Create a structure representing a student. The member variables should include student name, student ID, and four test grades for the student (an array of
+ Object Oriented Programming Create a structure representing a student. The member variables should include student name, student ID, and four test grades for the student (an array of four grades as a member variable) Prompt the user to enter the name, ID, and the four test results Store all the data in the structure. Calculate the average of the three highest grades, dropping the lowest one. Display the student's name, ID number, four test grades, and the average of the three highest grades. Use a loop to repeat the questions for the next student. Terminate the program when the user decides to stop Create three separate functions, one to get the information from the user, one to perform calculations, and another one to display the information. Do NOT use any global variables. Pass the object to your functions. In one of the functions, pass by value, one by reference, and one by pointer. This way. you will practice all different ways objects can be passed to functions. You can decide on the functions return type. You can also pass the pointer as a constont pointer if necessory. 1) Comments are extremely important. Add comments as you code. De NOT wait until you are done coding. Also, in the beginning of your codes include the following comments a. Purpose of the program b. Name of the author c Date 2) Use proper naming conventions for your variables and functions. 3) Tell the user what the program is all about, and the game works. Do NOT start the progrom with "Enter a number"! 4) Test, test, and test
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
