Instructor: Todd Dole
Success in the course is tied directly to your independent and successful completion of every homework assignment. This will mean time spent at the computer. The more proficient you become at using VS Code and other tools, the more fun you will have (and the greater success you will have).
By completing this assignment, you will:
Write a java program that helps a user estimate how much fuel they will need for a road trip.
Your program should prompt the user for:
Calculate and display the total number of gallons of gas needed, and the total cost for fuel for the trip.
Example:
Enter the distance of your trip (miles): 420
Enter your car's fuel efficiency (miles per gallon): 28
Enter to cost of gas per gallon: 3.45
You will need approximately 15.0 gallons of gas.
Your estimated fuel cost is $51.75