The data fields have self explanatory identifiers and their


You are required to implement the class, i.e. to develop the implementation file "Student.cpp" that conforms to the following specifications:

(1) The data fields have self explanatory identifiers, and their meaning should be clear from the Introduction.

(2) The "set" functions allow the user to set the assessment task marks within the specified margins, e.g. setExamMark ensures that the examMark is in the appropriate range - from 0 to 50.

(3) The function getGrade() returns the student's grade, calculated as specified in the Introductio n. The rest of the "get" functions simply return the values of the corresponding fields.

(4) The functio n passed() returns true if this student , has passed the course, and returns false otherwise (see the Introduction).

(5) friend ostream& operator<<(ostream& stream, const Student &) - the function overloads << operator, which allows a Student object information to be output in the following format:

Underwood Scott:
Assignment 1 8
Assignment 2 16
Lab Test 0
Exam 34
Grade P

(6) bool operator<(const Student &student)const - the function overloads < operator, which allows to compare student's full names exicographically.


Attachment:- Assignment.zip

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: The data fields have self explanatory identifiers and their
Reference No:- TGS0651271

Now Priced at $40 (50% Discount)

Recommended (99%)

Rated (4.3/5)