Mhargielyn D.
Mineque | BSIT102-I
PP2 - Seat Work Exercises - Flowchart -Sequential
1. Write an algorithm and draw a flowchart that will input Employee Name, Rate per hour, and Number
of hours
worked and will compute and display the daily wage of an employee.
Formula: Daily Wage = Rate per hour * No. of hours worked
ANSWER:
Start
Input/Read A, B, C, D
Initialize
A = Employee Name
B = Rate per hour
C = Numbers of
hours
D = Daily Wage
D=B*C
Print D
END
2. Write an algorithm and draw a flowchart that would input an integer/number and output its square and
cube.
Example 52= 25 53 = 125
Input an integer/number: 5
The square = 25(5*5)
The cube = 125(5*5*5)
Start
Initialize
A = Integer
B = A^2
C = A^3
Input/Read
A, B, C
B = A^2
C = A^3
Print B, C
END
3. Create a flowchart and an algorithm that will input the following data: Employee Number, Employee
Last Name, Employee FirstName, Rate per hour, Number of Hours Worked. Compute the Gross Pay,
SSS Deduction, Tax Withhold, Total Deduction, and Net Pay, then output only the net pay.
Gross Pay = No. of hours worked * rate per hour
SSS Deduction = 5% of Gross Pay
Tax Withhold = 10% of Gross Pay
Total Deduction = SSS Deduction + Tax Withhold
Net Pay = Gross Pay – Total Deductions
Algorithm
ANSWER:
Step 1: Start
Step 2: Initialize A = Employee Number
B= Employee Last Name
C = Employee First Name
D = Rate per hour
E = Number of Hours Worked
F = Gross Pay
G = SSS Deduction
H = Tax Withhold
I = Total Deduction
J = Net Pay
Step 3: Input/Read A, B, C, D, E, F, G, H, I, J
Step 4: F = E * D,
G = F*0.05,
H = F*0.10,
I = G+H
J=F–I
Step 5: Print A, B, C, I
Step 6: End