You are on page 1of 2

CANDIATE SELECTION

Implement class CANDIDATE with following description.


Data Member Data Type
CANDIDATE name STRING
CANDIDATE ID INT
JOBAPPLIED ENUM JOB { CLERK,MANAGER,ENGINEER}

Implement the below listed functions.

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

Implement class CODE TEST1 with following description.


Data Member Data Type

CODETESTID int
DATE OF EXAM STRING
MAX MARKS INT (CONST 100)
MARKS SECURED1 INT

Implement class CODE TEST 2with following description.


Data Member Data Type

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

default constructor To assign default values


Get and set functions Getter and setter for all attributes
accept() Accept details from user IF MARKS SECCURED >100
THROW A USER DEFINED EXCEPTION
operator<< To display details
Destructor To free memory

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.

You might also like