-bash-4.1$ ls -ld Fuel.java
-rw-r--r-- 1 dgerman faculty 1233 Sep 23 09:31 Fuel.java
-bash-4.1$ cat Fuel.java
// [identity removed]
// Calculates how far your car can go on a full tank and the cost of driving 100 miles.
import java.util.*;
import java.text.*;

class Fuel{
        public static void main(String[] args) {

                Scanner in;     //Create a new scanner for the input.
                in = new Scanner(System.in);                          // initialize the scanner "in"
                System.out.print("Please enter the number of gallons then press enter: ");
                double gallons = Double.parseDouble(in.nextLine());

                System.out.print("Please enter the fuel efficiency (miles/gallon) then press enter: ");
                double efficiency = Double.parseDouble(in.nextLine());

                System.out.print("Please enter the price per gallon, then press enter: ");
                double price = Double.parseDouble(in.nextLine());



                System.out.println("\n____|~\\_");
                System.out.println("[4x4_|_|-]");
                System.out.println("(_)   (_)\n");

                System.out.println("With the gas in the tank you can go "+ (gallons * efficiency) +
                                   " miles, \nat a cost of " + (NumberFormat.getCurrencyInstance().format(price/(efficiency/100)))+
                                                             // very nice
                                   " per 100 miles.");


        }
}
-bash-4.1$ javac Fuel.java
-bash-4.1$ java Fuel
Please enter the number of gallons then press enter: 12.34
Please enter the fuel efficiency (miles/gallon) then press enter: 34.56
Please enter the price per gallon, then press enter: 4.78

____|~\_
[4x4_|_|-]
(_)   (_)

With the gas in the tank you can go 426.47040000000004 miles,
at a cost of $13.83 per 100 miles.
-bash-4.1$