Professional Documents
Culture Documents
Start Read G 1, G 2, G 3 Sum G 1 + G 2 + G 3 Average Sum / 3 Write Average End
Start Read G 1, G 2, G 3 Sum G 1 + G 2 + G 3 Average Sum / 3 Write Average End
Semester : BS CS – 1A
Name : Muhammad Zain
Enroll no : (02-134182-037)
Exercise 1 (grades)
Draw a flowchart to read a student’s three grades, calculate the average of the grades,
then display the average grade.
Task #1
start
Read g 1 ,g 2 ,g 3
Sum = g 1 + g 2 + g 3
Average = sum / 3
Write average
end
Exercise 2 (volume)
Draw a flowchart for a program that reads the height, length, and width of a
rectangular box, calculates and displays the volume. Note: volume = lwh
Task#2
start
Read length, height and
width
volume = length*height*width
Write volume
End
Task 3
start
Promt user to
input x
Read x
Exercise 4 (Salary)
Draw a flowchart to reads the salary of an employee and prints:
"Manager" → if the salary is above 20000,
"Supervisor" → if the salary is above 15000,
Task 4
start
Promt user to
input x
Read x
Write
If x >20000 Yes
manager
no
Write
If x >15000 yes end
supervisor
no
Write
X is 8000
manager
Exercise 5 (Prediction)
We would like to predict the size of an insect population for the week 3 and 4 based
on data for week 1 and 2. The weekly rate of growth is a percentage of the
population at the beginning of the week. Draw flow chart of this problem.
Task 5