You are on page 1of 1

23/08/2021

Franz Lee D. Ramos

BSIT 2-E

ALGORITHM

Design: Practice

1. ALGORITHM for finding number is even or odd.

 We need a number.
 Check the number is divisible by 2.
 If true it means even number.
 If false it means odd number.

ALGORITHM STEP FORM.

1. Start

2. Read number

3. If number is divisible by 2, go to step 4. If else step 5.

4. Display “EVEN” and END.

5. Display “ODD” and END.

2. ALGORITHM for Computing wage of an employee.

 We need to declare the num of hours monthly, receive wage per hour, gross pay, and percent.
 Get the value of num of hours monthly, receive wage per hour, and get the equal gross pay
 Multiple the gross pay using .10 and value of tax.
 Subtract the tax to the total of wage
 END

ALGORITHM STEP FORM.


1. START
H= NUMBERS OF HOURS MONTHLY
W=RECIEVED WAGE PER HOUR
GP= GROSS PAY
.10= PERCENT
TX= TAX
2. TW= TOTAL WAGE OF AN EMPLOYEE
3. DECLARED THE VARIABLES(H,W,GP,10,TX,TW)
4. MULTIPLY NUMBER OF HOURS MONTHLY(H) BY RECIEVED WAGE PER HOUR(W) AND GET THE VALUE OF GROSS PAY (GP).
5. MULTIPY GROSS PAY (GP)  BY .10 (PERCENT) AND THE VALUE OF TAX
6. LESS TAX(TX) TO THE  GROSS PAY(GP)
7. THEN, PRINT TOTAL WAGE (TW)
8. END

You might also like