Math, asked by GEEK1107, 1 year ago

Define a class named EMPLOYEE in C++ with the following description.
Private Members: E_Id – Integer E_name – String of 25 characters DOB – String of 12 characters Basic – Float DA – Float HRA – Float TOT_Salary – Float Calculate-Salary () – it calculates the total salary as basic +DA+HRA where DA is 80% of basic and HRA is 15% of basic.
Public members Accept () – it accepts E_Id, E_name, DOB and basic. Thereafter it called the calculated salary. Display () – it displays the entire data. A constructer to initialize all integers and floats with 0

Answers

Answered by snehaj12161
3
After that we will do :
p.s.v.m ( br.readLine)
Employee.obj = new employee () ;
Obj. salary;
Obj. Accept ;
Obj. Display ;
}
}
}
Attachments:

GEEK1107: u sure its right ?
snehaj12161: yo
snehaj12161: that's right
GEEK1107: i wanted that in c++
Similar questions