Professional Documents
Culture Documents
Lab1 - Flowchart - Pseudocode (2018 - 06 - 02 21 - 22 - 38 UTC)
Lab1 - Flowchart - Pseudocode (2018 - 06 - 02 21 - 22 - 38 UTC)
LAB1
Lab 1: Flowchart & Pseudocode
Objectives
Exercise
1. Write a program using pseudocode and flowchart to calculate the average of three numbers. The
program will accept the input from user, sum up all the input, calculate the average and and finally
print out the result. (Loop is not required in this program)
2. Write a program using pseudocode and flowchart to calculate a worker’s pay with overtime. The
user will input the total working hours and rate per hour. If the total working hours is more than 40,
the calculation will include overtime based on the following formula:
If the total working hours is 40 and below, the program will just calculate basic pay. The program
will then print the result.
3. Write a program using pseudocode and flowchart to calculate the average of 15 numbers using a
loop. The numbers is input by user and the program will print the result at the end.