You are on page 1of 3

IPO Chart Activity Sheet

Example: See below for an example to get you started.


Q: Write a program to read 3 numbers. The program should calculate and then output the sum and
average.

Input Process Output

3 Numbers 1. Get Number 1 Sum


2. Get Number 2
Average
3. Get Number 3
4. Calculate sum by
adding the three
numbers
5. Calculate the
average by dividing
sum by three
6. Display Sum
7. Display Average

Q1: Write a program to read 2 numbers. The program should calculate and then output the sum,
average, and product. (20 marks)

Input Process Output

2 Numbers 1. Get Number 1 Sum


2. Get Number 2
Average
3. Calculate the sum
by adding the 2 Product
numbers.
4. Calculate the
average by dividing
the sum by 2
5. Calculate the
product by
multiplying the two
numbers.
Q2: Create the algorithm to convert a person’s weight from pounds to kilograms. The weight in
kilograms should then be displayed (8 marks)

Input Process Output

Pounds 1. Convert pounds to Weight in kilograms


kilograms(kg)
Kilograms
2. kilograms=
pounds/2.20462

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)

Input Process Output

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

3. Display the calculated


volume.

Q4: Write an IPO chart for a program to calculate the area of a triangle, then display the result. (10
marks)

Input Process Output

- 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)

You might also like