Question: pls help me write a java program that gives the exact same output...and put the code screenshot Write a java program that asks user to
Write a java program that asks user to input these values: 1. The number of gallons of gas in the tank 2. The fuel efficiency of car in Kilometers per gallon 3. The price of gas per gallon Then compute and display: The cost per 100 miles. How far the car can go with the gas in the tank. (kilometers) Sample run/output: run: Enter number of gallons of gas in the tank: 19.3 Enter fuel efficiency of car (km/gallon) : 22 Enter the price of gas per gallon: 0.25 Gallon of gaz in tank Fuel efficiency Gallon price (OMR) cost of 100 miles (OMR) Distance can travel (km) 885.14 424.60 19.30 22.00 0.25 BUILD SUCCESSFUL (total time: 12 seconds)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
