Question: write a java code roblem Overview: a . Students will create a console - based menu ordering system for a small restaurant. b . The
write a java code roblem Overview:
a Students will create a consolebased menu ordering system for a small restaurant.
b The system will display a menu with different food items and prices.
c Users can select items, and the system will calculate the total cost.
d Use System.out.println to display a simple menu with item names and prices.
Project Requirements:
a Display a list of menu items.
b Use branching ifelse or switch to handle user input for selecting menu items.
c Calculate and display the total cost of the selected items.
Handling User Input
a Use a Scanner object to capture user input for selecting menu items
b Use branching switch to respond to difference choices
Tasks:
Navigate into the ICTJava directory and create a Lesson directory, then create a
menu.java file.
The first part of your code you will write yourself. Make sure to include the package,
import java.util.Scanner, public class, public static, and Scanner lines. Then use int
choice; and double totalCost ; and add your System.out.println lines
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
