Sequence Design 1 – SquareSystem

Problem: SquareSystem

Specification
Develop a program that accepts as data input the length of a square, calculates the area, and then displays the area.
Data Input(s) Data Processing Data Output(s)
Length – Integer Area – Real Area – Real
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.Length = 10Area = Length * Length

Area = 10 * 10

Area = 100

Algorithm
BeginGet Length

Calculate Area as Length * Length

Display ‘The area of the square is ‘ Area

End

Next: Sequence Program 1 – SquareSystem