You are on page 1of 2

Performance Task #3

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:
-----------------------------------------------------------

After the user enter the number of hours worked.


The program will compute for the salary with the formula
Salary=(Number of hours worked*150)-availed benefits.

The Program will display the following information:


-----------------------------------------------------------
Name:
Position:
Benefits:
Hours worked:
Salary:
-----------------------------------------------------------

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:
-----------------------------------------------------------

After the user enter the number of hours worked.


The program will compute for the salary with the formula
Salary=(Number of hours worked*50)-availed benefits.

The Program will display the following information:


-----------------------------------------------------------
Name:
Position:
Benefits:
Hours worked:
Salary:
-----------------------------------------------------------

If the user select Part-Time. The program will display:


-----------------------------------------------------------
Enter the number of hours worked:
-----------------------------------------------------------

After the user enter the number of hours worked.


The program will compute for the salary with the formula
Salary=(Number of hours worked*50)

The Program will display the following information:


-----------------------------------------------------------
Name:
Position:
Hours worked:
Salary:
-----------------------------------------------------------

You might also like