Sequence Program 1 – SquareSystem

This layout shows a line for line translation of a data table and an algorithm.

Problem: SquareSystem Problem: SquareSystem
Data Table // Variables
Length – Integer var Length = 0 ;
Area – Real var Area = 0.0 ;
Algorithm // Main Program
Begin // Begin SquareSystem
Get Length Length = prompt (‘Enter length: ‘) ;
Calculate Area as Length * Length Area =Length * Length ;
Display ‘Area of square is ‘ Area alert (‘Area of square is ‘ + Area) ;
End // End SquareSystem

Next: Sequence Javascript Program 1 – SquareSystem