Computer Science, asked by sonamuniboipai075, 9 months ago


5. Jack and his three friends have decided to go for a trip by sharing the expenses of the fuel
equally.
Write a Java program to calculate the amount (in Rs) each of them need to put in for the
complete (both to and from) journey.
The program should also display true, if the amount to be paid by each person is divisible
by 5, otherwise it should display False.
Assume that mileage of the vehicle, amount per liter of fuel and distance for one way are
given.
Test your code by using the given sample inputs.
Verify your code by using the 2nd sample input (highlighted) given below:

Answers

Answered by kaushikkamla54
0

Answer:good IQ KID...ITS A GOOD QUESTION...

Similar questions