5. An air-conditioned bus charges fare from the passengers based on the distance travelled
as per the tariff given below:
Fare
Distance Travelled
Up to 10 km
11 km to 20 km
21 km to 30 km
31 km and above
Fixed charge 380
36/km
35/km
34/km
Design a program to input distance travelled by the passenger. Calculate and display
the fare to be paid.
pls answer in stream class in java
Answers
Answered by
0
Answer:
published on Jan and I have purchased a student in my marriage anniversary my brother is not good enough for you you can see if I can see the day my dear friend Sonu Nigam and the other hand you so much and I
Answered by
0
Distance Travelled Fare
Up to 10 km Fixed charge ₹80
11 km to 20 km ₹6/km
21 km to 30 km ₹5/km
31 km and above ₹4/km
Similar questions