Sequence Program 3 – BankSystem

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

Problem: BankSystem Problem: BankSystem
Data Table // Constants and variables
InterestRate = 2.5 Real Constant const InterestRate = 2.5 ;
Amount – Real var Amount = 0.0 ;
InterestDue – Real var InterestDue = 0.0 ;
Algorithm // Main Program
Begin // Begin BankSystem
Get Amount Amount = prompt (‘Amount?’) ;
Calc InterestDue as Amount * InterestRate / 100 InterestDue = Amount * InterestRate / 100 ;
Display ‘Interest = ‘  InterestDue alert (‘Interest = ‘ + InterestDue) ;
End // End BankSystem

Next: Sequence Javascript Program 3 – AverageSystem