Professional Documents
Culture Documents
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:
Step 1: Start
C = Number of hours
D = Daily Wage
Step 3: Input/Read A, B, C, D
Step 4: D = B*C
Step 5: Print D
Step 6: 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)
ANSWER:
Step 1: Start
Step 3: Input/Read A, B, C
Step 5: Print B, C
Step 6: 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 Pa
Tax Withhold = 10% of Gross Pay
Total Deduction = SSS Deduction + Tax Withhold
Net Pay = Gross Pay – Total Deductions
ANSWER:
Step 1: Start
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