Algorithm Question Nov '04
Input StrtStation,DestStation, Passengers
If StrtStation and DestStation are any integer value from 1 to 10 Then
Stations Travelled = DestStation-StrtStation
Fare = $2 * Stations Travelled * Passengers
If Passengers>= 3 Then
Fare = 90% * Fare
End if
Print "Fare = " ,Fare
Else
Print "Invalid Station Numbers"
End if
Input money received from customer
Change = money received from customer-Fare
Output change
Print Tickets