Question: I need help with a Java programming exercise: For example, the input 1156 represe u 2.23 (Cost of driving) Write a program that prompts the
I need help with a Java programming exercise:

For example, the input 1156 represe u 2.23 (Cost of driving) 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 then displays the cost of the trip. Here is a sample run: Enter the driving distance: 900.5Ene Enter miles per gallon: 25.5 -Enter Enter price per gallon: 3.55 Enter The cost of driving is $125.36
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
