Skip to main content

Data Table for Loop Program

The data table for this program is as shown below:

Identifier Description Type / Range
StartMiles Miles at start of car journey Integer
StopMiles Miles at end of journey Integer
TotalCharge Total cost of car hire in pounds Real
TotalMiles Total number of miles travelled in the car journey Integer
StandardCharge Standard hire rate of 0.20p per mile Real
Surcharge Wear and tear surcharge for every complete 1000 miles (25 pounds) Real

Next: Algorithm (Without Loop)