A computerised bus charges fare from each of its passengers based on the distance travelled
as per the tariff given below:-
Distance(in km) Charges
First 10 km Rs. 50
Next 15 km Rs.Rs.4.50/km
More than 25 km Rs. 4.00/km
As the passenger enters the bus, the computer prompts ‘Enter distance you intend to travel’.
On entering the distance, it prints the ticket and the control goes back for the next passenger.
At the end of journey, the computer prints the following :-
1) The number of passenger travelled. 2) Total fare received.
Write a program to perform the above task.[ Hints: perform the task based on user
controlled loop ]
Answers
Answered by
0
Answer:
two0concerto lack gumdrop part still putz all cup is zero putz cupid closedतमर9ॉज
Explanation:
crib Jack Lexi park
Similar questions