Professional Documents
Culture Documents
Ipo Chart Activity
Ipo Chart Activity
Q1: Write a program to read 2 numbers. The program should calculate and then output the sum,
average, and product. (20 marks)
Q3: Create a program that will accept the length, width, and depth of a rectangular pool, calculate and
display the volume of water it can hold. (16 marks)
Length of the rectangular pool (in 1. Accept the user input for Volume of water the
meters) the length, width, and rectangular pool can
depth. hold (in cubic meters)
- Width of the rectangular pool (in
meters) 2. Calculate the volume of
the rectangular pool using
- Depth of the rectangular pool (in
the formula:
meters)
Volume = Length x Width
x Depth
Q4: Write an IPO chart for a program to calculate the area of a triangle, then display the result. (10
marks)
- Length of the base of the triangle Calculate the area of the - Display the calculated
(base) triangle using the formula: area of the triangle
Area = 0.5 * base * height
- Height of the triangle (height)