Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

Menu.txt

image text in transcribed

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:

image text in transcribed

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 20

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is entrepreneurship?

Answered: 1 week ago

Question

Write short notes on Interviews.

Answered: 1 week ago

Question

Define induction and what are its objectives ?

Answered: 1 week ago

Question

Discuss the techniques of job analysis.

Answered: 1 week ago

Question

How do we do subnetting in IPv6?Explain with a suitable example.

Answered: 1 week ago

Question

Explain the guideline for job description.

Answered: 1 week ago

Question

Discuss the key ambient conditions and their effects on customers.

Answered: 1 week ago