You are on page 1of 4

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:
Step 1: Start

Step 2: Initialize A = Employee Name

B = Rate per hour

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 2: Initialize A = Integer, B = Square, C = Cube

Step 3: Input/Read A, B, C

Step 4: B = A^2, C = A^3

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

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

You might also like