Question: This is a Java related question: Write a complete Java program in a source file to be named Assignment2.java. The program prints out the following
This is a Java related question:

Write a complete Java program in a source file to be named Assignment2.java. The program prints out the following menu to a user, using \t (tabs) and (newline), and print or println methods of System.out: Welcome to the In-N-Out Burger menu: ------------------------------------------------------ Hamburger $2.75 Cheeseburger $3.25 French Fries $2.50 Shake & Beverage: $1.50 Then prompts the user: How many hamburger(s) would you like to buy? and read in the number. Then prompts the user: How many cheeseburger(s) would you like to buy? and read in the number. Then prompts the user: How many French fries would you like to buy? and read in the number. Then prompts the user: How many drinks would you like to buy? and read in the number. Then the program computes and prints the following: The total cost for the hamburger(s) The total cost for the cheeseburger(s) The total cost for fries The total cost for drink(s) Which item had the highest total cost The total cost for the order The total number of hamburgers, cheeseburgers, French fries, and drinks ordered
Write a complete Java program in a source file to be named Assignments 2. java, The program prints out the following menu to a user, using 'lt' tabs) and 'In' (newline) and print or println methods of System. out: Welcome to the In N-Out Burger menu: Hamburger $2.75 Cheeseburger $3.25 French Fries $2.50 Shake & Beverage: $1.50 Then prompts the user: How many hamburger(s) would you like to buy and read in the number. Then prompts the user How many cheeseburger (s) would you like to buy and read in the number. Then prompts the user How many French fries would you like to buy? and read in the number. Then prompts the user How many drinks would you like to buy? and read in the number. Then the program computes and prints the following The total cost for the hamburger(s) The total cost for the cheeseburger The total cost for fries The total cost for drink (s) Which item had the highest total cost The total cost for the order The total number of hamburgers, cheeseburgers, French fries, and drinks ordered
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
