The program prints out the following menu to a user, using \'\\t\' (tabs) and \'
ID: 3549352 • Letter: T
Question
The program prints out the following menu to a user, using ' ' (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
Explanation / Answer
The program prints out the following menu to a user, using '\t' (tabs) and '
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.