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