Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A . Manager B . Customer C . Exit Enter your choice: A Please enter your credentials to login as a manager. username: sam 2
A Manager
B Customer
C Exit
Enter your choice: A
Please enter your credentials to login as a manager.
username: sam
password: $
A Display All Menu
B Maintenance Mode
C Add Menu Item
D Go Back Main Menu
Enter your choice:
Customer Mode:
a If in Maintenance Mode, display an error message:
"The kiosk is currently undergoing repairs. We are unable to take any orders at
this time. We apologize for the inconvenience."
b If not in a maintenance mode, provide options to:
A Display all Menu: Show the menu from "menu.txt
B Place Order: Select dishes and show the final bill with taxes.
Add another item: Allows to add item to the cart
Cancel: Cancel the order and go back to "Home Menu"
Done: Show the final total price.
The total price should include a tax of
Show the following message after user finalizes the order, and
return "Home Menu".
"Your order has been taken. Please proceed to the register to pay $ and
collect your food. Thank you, and please visit again." $x is the total
order price
C Go Back: Return to the "Home" menu.
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