This Java program provides a command-line interface for users to order customized sandwiches, drinks, and chips. Users can personalize their order step-by-step, including sandwich size, bread type, toppings, sauces, and extras.
-
Home Screen:
- Start a new order or exit the application.
-
Order Screen:
- Add items to the order, including:
- Sandwich
- Drink
- Chips
- Proceed to check out or cancel the order.
- Add items to the order, including:
-
Customization Options:
- Sandwich:
- Choose bread type, meat, cheese, veggie toppings, and sauces.
- Add extras (e.g., extra meat, extra cheese).
- Option to have the sandwich toasted.
- Select sandwich size: 4, 8, or 12 inches.
- Drink: Select size (small, medium, large) and flavor.
- Chips: Choose a chip brand.
- Sandwich:
-
Order Summary:
- Review the order summary, including all selected items and the total price.
- Confirm or cancel the order.
- If confirmed, a receipt is generated.
- Run the Program: Execute the main program to display the home screen options.
- Place an Order:
- Select
New Order
to start. - Follow prompts to add items (sandwich, drink, chips).
- Customize each item:
- Sandwich: Select bread, meat, cheese, veggies, sauces, and extras.
- Drink: Choose size and flavor.
- Chips: Choose a brand.
- Select
- Checkout:
- Review the order summary.
- Confirm to complete the order and generate a receipt, or cancel to discard the order.
- Java Development Kit (JDK) 8 or higher.