Question: 2. Write a program using a class employee to input the record of employees. Define the following data members: Name I Basic Pay House Rent

2. Write a program using a class employee to input the record of employees. Define the following data members: Name I Basic Pay House Rent Medical Allowance Net pay Define the following member functions: To input data. To calculate house rent, medical allowance and net pay. To display the complete record on the screen. where house rent -60% (60/100)of basic pay medical allowance - 20% (20/100)of basic pay Net pay=Basic Pay + House Rent + Medical Allowance The output of a program should be like
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
