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

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 constant pointer if necessary. Requirements: 1) Comments are extremely important. Add comments as you code. Do 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 program with Enter a number!! 4) Test, test, and test.
 Create a structure representing a student. The member variables should include
student name, student ID, and four test grades for the student (an

+ 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

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 Databases Questions!