Question
Coffe Menu Write a program that will allow you to do the following 1. Adds food. - A list of available foods will be displayed
Coffe Menu
Write a program that will allow you to do the following
1. Adds food.
- A list of available foods will be displayed to the user with their prices.
-Ask the user to enter the name of the food.
-Next, ask the user the quantity of this food they would like to get.
-From the given item, calculate the sub total of the selected food they added.
-Display the menu again.
2. View order
-The users current cart total and number of items will be displayed.
3. Clear order
-The user will be able to clear their cart. However, before clearing the cart, give the following message to the user: do you want to clear your cart?
-If the user enters yes, clear the cart. In other words, CART should be blank. If the user enters no, display Cart not changed. Going back to menu.
-Display the menu again.
4. Checkout
-The user will be able to view the number of items and their total (including tax 7.25%).
-Ask the user to select pickup or delivery. If the user selects delivery, add a $5.00 delivery fee to the total and continue and ask for an address. If the user selects pickup, just continue.
-Ask the user to enter their 16-digit card number to complete the order.
-Print out their receipt which should include:
-The number of items they purchased.
-Their total
-Terminate the program.
5.Exit
-Tell the user Thank you for using our app Goodbye! and terminate the program.
The following code has to be using Scanner and else if statements, there cant be any libraries
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started