Sequence Design 2 – AverageSystem

Problem: AverageSystem

Develop an algorithm for a program that will accept as data input two integer numbers, then calculate the average, and display the average.
Data Input(s) Data Processing Data Output(s)
Number1 – Integer Average – Real Average – Real
Number2 – Integer Sum – Integer


Data Processes (Using Sample Data)
Working out a sample answer allows you to understand the processing you want the computer to carry out.  The data and answer worked out here can be used later to test the program.Number1 = 5
Number2 = 6

Sum = Number1 + Number2

Sum = 5 + 6

Sum = 11

Average = Sum / 2

Average = 5.5

Note: The / sign is used to indicate division on the computer.

BeginGet Number1
Get Number2

Calculate Sum as Number1 + Number2

Calculate Average as Sum / 2

Display ‘The average of the two numbers is ‘ Average


Next: Sequence Program 2 – AverageSystem