Hello, I am taking my first java class and am having a little trouble with my code. I need to come up with a code that comes ups with the total for each items ordered. I have tried many different things but have had no luck. If someone help me out and point me in the right direction it would be appreciated.
import java.util.Scanner;
public class Assignment2
{
public static void main(String[] args)
{
double Hamburger = 2.75;
double Cheeseburger = 3.25;
double FrenchFry = 2.50;
double ShakeBeverage = 1.50;
double TotalforHamburgers = Double.parseDouble(Hamburgers) * (2.75);
Scanner in = new Scanner (System.in);
String Hamburgers;
String Cheeseburgers;
String FrenchFries;
String Drinks;
System.out.println("Welcome to the In-N-Out Burger Menu");
System.out.println("------------------------------------");
System.out.println("Hamburger $2.75");
System.out.println("Cheeseburger $3.25");
System.out.println("French Fries $2.50");
System.out.println("Shake & Beverage $1.50");
System.out.println(" ");
System.out.print("How many hamburger(s) would you like to buy? ");
Hamburgers = in.nextLine();
System.out.print("How many cheeseburger(s) would you like to buy? ");
Cheeseburgers = in.nextLine();
System.out.print("How many french fries would you like to buy? ");
FrenchFries = in.nextLine();
System.out.print("How many drinks would you like to buy? ");
Drinks = in.nextLine();
System.out.println("The total cost for the hamburger(s) is " + TotalforHamburgers);
System.out.println("The total cost for the cheeseburger(s) is ");
System.out.println("The tolal cost for fries is ");
System.out.println("The total cost for drinks is ");
System.out.println("Item with the highest cost total is");
System.out.println("The total cost for the order is ");
System.out.println("The total number of items ordered is ");
}
}