Question
Through the use of Java please solve: Tables.txt Menu.txt This assignment mimics the configuration and the activities happen at a typical restaurant. Configuration file tables.txt
Through the use of Java please solve:
Tables.txt
Menu.txt
This assignment mimics the configuration and the activities happen at a typical restaurant. Configuration file tables.txt contains the table information & menu.txt contains the full menu list (sample files have been attached).
We will use the following classes to complete this assignment. Feel free to add more variables if needed. Avoid making drastic changes to existing variables. You need to define the classes and implement all the .java files including class implementation and the overall application functionality.
- Table : status, # of max seats, # of guests if a party is seated, order if the party has ordered
- MenuItem: itemCode, name, price
- Menu : array of MenuItems
- Order : a list of menu items ordered at a table
Read the configuration file and create the necessary objects / array of objects, then proceed to read the activities from the user and process them one at a time. Do not use any advanced data structures that have not been covered in the class.
Here is some sample input & output to capture the functionality of the program:
1 2 2 4 3 2 4 2 5 2 6 4 7 6 8 10 9 2 10 4 11 4 12 4 13 4 14 2 15 2 16 2 17 2 18 2 50 20 1 2 2 4 3 2 4 2 5 2 6 4 7 6 8 10 9 2 10 4 11 4 12 4 13 4 14 2 15 2 16 2 17 2 18 2 50 20Step 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