Home/inquery/write a program in java to calculate the fare for passenger travelling on a computerized bus as a passenger entire the bus computer displayswhat distance will you travelon entering the distance the fare printed
Distance up to 15km fareRS5 Distanceup to 25kmfareRs 10
Distanceabove 25 km
Fare RS 25
the computer keeps getting on adding and displaying the total fare after each passenger has entered and the program ends when the distance is entered as 0it then prints the total number of passenger who entered the bus and the total fare collected
write a program in java to calculate the fare for passenger travelling on a computerized bus as a passenger entire the bus computer displayswhat distance will you travelon entering the distance the fare printed
Distance up to 15km fareRS5 Distanceup to 25kmfareRs 10
Distanceabove 25 km
Fare RS 25
the computer keeps getting on adding and displaying the total fare after each passenger has entered and the program ends when the distance is entered as 0it then prints the total number of passenger who entered the bus and the total fare collected
write a program in java to calculate the fare for passenger travelling on a computerized bus as a passenger entire the bus computer displayswhat distance will you travelon entering the distance the fare printed
Distance up to 15km fareRS5 Distanceup to 25kmfareRs 10
Distanceabove 25 km
Fare RS 25
the computer keeps getting on adding and displaying the total fare after each passenger has entered and the program ends when the distance is entered as 0it then prints the total number of passenger who entered the bus and the total fare collected
Leave a comment