Vous êtes sur la page 1sur 1

Algorithm

Pseudocode
Step 1: enter the employee position
Enter Employee position
Step2: number of hours Enter number of hours
Step 3: Read position If position is If position is equal to Manager GERO
Manager the salary per day is 800 X 15 A1 = 100 * hours
days with deductions of 110. A2 = A1 * 15
Step 4:Show total Salary of manager for SSS= A2 – 50
15days. Pag ibig = SSS – 30
Philhealth = Pag ibig – 20
Step 5:Show the remaining balance
Tax = Philhealth - 10
because of Deductions. Display “Hi! Your Salary for 15days”+A2
Step 6: Read position If position is Display “Remaining balance because od
Supervisor the salary per day is 640 X 15 deduction is” + tax
days with deductions of 110. Else
Step 7:Show total Salary of Supervisor If position is equal to Supervisor
for 15days. B1 = 80* hours
A2 = A1 * 15
Step 8:Show the remaining balance
SSS= A2 – 50
because of Deductions. Pag ibig = SSS – 30
Step 9: Read position If position is Clerk Philhealth = Pag ibig – 20
the salary per day is 400 X 15 days with Tax = Philhealth - 10
deductions of 110. Display “Hi! Your Salary for 15days”+B2
Step 10:Show total Salary of Clerk for Display “Remaining balance because od
15days. deduction is” + tax
Else
Step 11:Show the remaining balance
If position is equal to Clerk
because of Deductions. C1 = 80* hours
A2 = A1 * 15
SSS= A2 – 50
Pag ibig = SSS – 30
Philhealth = Pag ibig – 20
Tax = Philhealth - 10
Display “Hi! Your Salary for 15days”+C2
Display “Remaining balance because od
deduction is” + tax

Vous aimerez peut-être aussi