Professional Documents
Culture Documents
Salary Computation
Create a program with a class name salary_computation. The program will display:
-----------------------------------------------------------
Enter your name: _
Select your Position:
a. Supervisor
b. Staf
c. Part-time
Enter the letter of your Position: _
-----------------------------------------------------------
If the user select Supervisor. Deduct the availed benefits in the employees salary.
The program will display:
-----------------------------------------------------------
Select your availed benefits:
a. MediCard and Credit Union=500
b. Medicard, Credit Union and Housing=1500
c. None
Enter the availed benefits:_
-----------------------------------------------------------
After the user select the availed benefits, the program will display:
-----------------------------------------------------------
Enter the number of hours worked:
-----------------------------------------------------------
If the user select Staf. Deduct the availed benefits in the employees salary.
The program will display:
-----------------------------------------------------------
Select your availed benefits:
a. MediCard and Credit Union=500
b. None
Enter the availed benefits:_
-----------------------------------------------------------
After the user select the availed benefits, the program will display:
-----------------------------------------------------------
Enter the number of hours worked:
-----------------------------------------------------------