Question: Code in C++ Construct a class named Student consisting of an integer student ID number, an array of five double-precision grades, and an integer representing
Code in C++
Construct a class named Student consisting of an integer student ID number, an array of five double-precision grades, and an integer representing the total number of grades entered. The constructor for this class should initialize all Student data members to 0. Included in the class should be member functions to 1) enter a student ID number, 2) enter a single test grade and update the total number of grades entered, and 3) compute an average grade and display the student ID followed by the average grade. Include the class constructed in the context of a complete program. Your program should declare two objects of type Student and accept and display data for the two objects to verify operation of the member functions.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
