Question 1: Student
Write the class definition for a Student class that contains four private data members:
An int studNum to store the student number.
A string studFirstName to store the student’s first name.
A string studSurname to store the student’s surname.
A one dimensional array subjectCode of type string that hold the five subjects that the student is registered for.
A parallel array to the subject code array called finalMark that holds the final mark that the student obtained for the subject stored in the subject code array.
A double overallAverage that will hold the overall average that the student has obtained for all the subjects that he/she is registered for.
Comments
Leave a comment