Vincent+Stierman+java+code


 * Liters to Gallons Program**

import java.util.Scanner;//allows the scanner to be used in the project public class literstogalons {//name of the class /**


 * @param args



public static void main(String[] args) {

System.out.print("How many liters do you want to convert?" );//Asks user how many gallons they want to convert

Scanner kbd = new Scanner(System.in);//initializes gallons variable

double gallons = kbd.nextDouble;//initializes gallons variable

System.out.print ("What is the liter to gallon rate");//Asks them the rate of liters to gallons

double litersPergallon = kbd.nextDouble; //initializes litersPergallon variable

double liters = gallons * litersPergallon;//initializes litersPergallon variable

System.out.println (gallons + "gallons =>" + liters +"liters");//does calculation

}

}