Computer Science, asked by aryaparashar1118, 1 year ago

A pre-paid taxi charges from the passenger as the tariff given below: up to 5km Rs.100 for the next 10km Rs. 10/km for the next 10km Rs. 8/km more than 25km Rs. 5/km Wap to input the distance covered and calculate the amount paid by the passenger.The program displays the printed bill with the details given below:Taxi no:Distance covered:Amount:in java

Answers

Answered by HarshChahal1090
2

Answer:

HERE you go brother

Explanation:

class hippo

{

void read( Double e)

{

int x = 100 + 10*10 + 8*25*5;

System.out.println("The details of the fare are as follows:/n Taxi no-+"e"/n

Total distance covered = +50/n Total amount to be paid = +"x"");

}

}

                                   MARK AS BRAINLIEST!

Similar questions