Galleta, Marc Anjelou M. Bscs 1-B
Galleta, Marc Anjelou M. Bscs 1-B
BSCS 1-B
Note: Write the Algorithm and the Flowchart. 10 points each number (5 points for the algorithm
and 5 points for the flowchart).
1. Write the algorithm and draw the flowchart. Given three numbers A, B, and C. Compute and
print out the sum, the product and the average of these values.
Algorithm:
1. Get the value of A, B, C
2. Compute the sum(A+B+C), average(sum/3), product(sum*average)
3. Print sum, average, product
Flowchart:
Start
Print Sum
Print Average
Print Product
‘
End
2. Draw a flowchart that determines if the employee has to be paid of overtime pay (OT). They
will be paid an OT if they exceed 40 hours work in a week, regular pay (RP) if less than or equal
to 40 hours only. Display “OT Pay” or “RP Pay”, based on this condition.
Flowchart:
Start
End