Professional Documents
Culture Documents
Method Description
default constructor To assign default values
parameterized constructor To set values of parameters
Copy constructor To Copy one Customer object into another
Get and set functions Getter and setter for all attributes
accept() Accept details from user
operator<< To display details
Destructor To free memory
CODETESTID int
DATE OF EXAM STRING
MAX MARKS INT (CONST 100)
MARKS SECURED1 INT
CODETESTID int
DATE OF EXAM STRING
MAX MARKS INT (CONST 200)
MARKS SECURED2 INT
Implement the below listed functions. FOR BOTH CODETEST1 &2
Method Description
Client Code:
1. Create array of 3 CANDIDATES
2. Accept details from user.
3. Display details using << operator.
4. A CANDIDATE IS SELECTED IF GETS >70 IN TEST1 AND >150 IN TEST2
5. OR >60 IN TEST1 AND >160 IN TEST2
6. Display WEATHER A CANDIDATE IS SELECTED OR NOT UPON GIVING CANDIDATE ID
Free memory when not in use.
Note: Code should be implemented in separate files like .h and .cpp
Add header guard and comments
Code should be properly indented.