Association Relationships in Java Using the revised UML Class diagram Resto Fun Final i posted,  continue developing the Resto Fun system by modifying class definitions Create an Order class to break the Many-To-Many relationship between Customer and Item. This is a Relationship Class, a class that contains information on the association between to classes. Implement the relationship WaitsOn between Waiter and Customer, knowing that the relationship indicates that this is a One-to-Many relationship mandatory in both ends, i.e., a waiter must wait on a customer and a customer must be waited on by a waiter. Implement the relationship Orders between Customer (Table) and Item, another One-to-Many, since there are many Items a Customers can order, but each Item ordered is for one customer only. Implement the Add relationship between Order and Item. Include a method to assign the Order to a Customer before you start adding Items to the Order! There is enough information now to implement the generateBill method for the Customer (Table) class. Also, the systems will have to indicate that a Waiter has started their shift by displaying the time they started. Also, when they finish a shift. This can be done by implementing the startShift() & finishShift() methods of the Waiter class. [Hint: use the java.time.LocalDateTime class to do the work!] Include a Tester class, which will contain the main method and serve to generate and display two instances of each one of the classes, except abstract classes

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Association Relationships in Java

Using the revised UML Class diagram Resto Fun Final i posted,  continue
developing the Resto Fun system by modifying class definitions

Create an Order class to break the Many-To-Many relationship between Customer and Item. This
is a Relationship Class, a class that contains information on the association between to classes.
Implement the relationship WaitsOn between Waiter and Customer, knowing that the
relationship indicates that this is a One-to-Many relationship mandatory in both ends, i.e., a
waiter must wait on a customer and a customer must be waited on by a waiter.
Implement the relationship Orders between Customer (Table) and Item, another One-to-Many,
since there are many Items a Customers can order, but each Item ordered is for one customer
only.
Implement the Add relationship between Order and Item. Include a method to assign the Order
to a Customer before you start adding Items to the Order!
There is enough information now to implement the generateBill method for the Customer (Table)
class. Also, the systems will have to indicate that a Waiter has started their shift by displaying the
time they started. Also, when they finish a shift. This can be done by implementing the startShift()
& finishShift() methods of the Waiter class. [Hint: use the java.time.LocalDateTime class to do
the work!]
Include a Tester class, which will contain the main method and serve to generate and display two
instances of each one of the classes, except abstract classes
Customer
(aka) Table
-number Int
FisAvailable:boolean
-guests int
changeAvailability:void
+genrateBill():double
Waits On
Waiter
-code:String
-name:String
-salary double
+startShift:void
+finishShino void
Order
orders 1 -date:LocalDate
-items ArrayList<Item>
-customers:ArrayList<Customer
add
Food
.
Item
-name:String
-description:String
-price:double
-onSpecial:boolean
+setOnSpecial():void
+noLongerOnSpecial():void
-preparation Time:String
Beverage
-size:double
includes
made Of
Menu
+Additem(item):void
Ingredient
-name:String
quantityOnHand:Int
quantityOnOrder:Int
amountOnHand:double
-amountOnOrder:double
+updateInventory(int quantityReceived):void
+updateInventory(double amountReceived):void
CAFE MONTMARTRE
Transcribed Image Text:Customer (aka) Table -number Int FisAvailable:boolean -guests int changeAvailability:void +genrateBill():double Waits On Waiter -code:String -name:String -salary double +startShift:void +finishShino void Order orders 1 -date:LocalDate -items ArrayList<Item> -customers:ArrayList<Customer add Food . Item -name:String -description:String -price:double -onSpecial:boolean +setOnSpecial():void +noLongerOnSpecial():void -preparation Time:String Beverage -size:double includes made Of Menu +Additem(item):void Ingredient -name:String quantityOnHand:Int quantityOnOrder:Int amountOnHand:double -amountOnOrder:double +updateInventory(int quantityReceived):void +updateInventory(double amountReceived):void CAFE MONTMARTRE
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY