Question: This class should have the following member functions: Create a constructor with no parameters that increments the static variable by 1 and assigns it to
This class should have the following member functions:
Create a constructor with no parameters that increments the static variable by and
assigns it to the roll number. The remaining data members should be initialized to zero
or empty values.
Input function that will allow the user to input the names and marks of courses.
Show function that will display the roll number, name and marks of courses to
the user.
TotalStudents function that should display the number of objects that have
been created so far. This function should be static.
TotalMarks function that should calculate and return the total marks of a
student.
getHighest function that returns the highest mark of the student.
getLowest function that returns the lowest mark of the student.
getAverage function that returns the average mark of the student.
getPassCount function that counts and returns the total number of courses in
which the student has passed a student passes the course if heshe gets a mark
between and ; fails the course if heshe gets a mark between and
In the main function, create three objects, input their values and display them. For each
student, display the students total marks, highest mark, lowest mark, average mark,
and the number of courses which heshe passed. Also display how many students have
been registered so far ie the number of objects Every student must write hisher real
name and surname and student id number in the first object. You may use fictional
names and surnames in the following two objects.
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
