Question: write a program that prompts the user to enter the distance to drive, the fuel efficiency of the car in miles per gallon, and the
write a program that prompts the user to enter the distance to drive, the fuel efficiency of the car in miles per gallon, and the price per gallon, and displays the cost of the trip.
NB:Please make sure to use the "NumberFormat coding" for currency to display your results. (Java)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
