Question
: An UML Class diagram that models the following points You can use any computer-based drawing tool. Violet recommended. When a business determines it needs
: An UML Class diagram that models the following points
You can use any computer-based drawing tool. Violet recommended.
When a business determines it needs a computer system, it works with a team of developers to design and develop the system. One of the first tasks for the development team is to analyse the business and identify the functions the system will perform. You are part of the team working atCafé Montmartre.
Café Montmartre is looking to implement a java program to help them manage the data they need to run their business. A business consultant has identified the following 7 objects that interact to get the process running:
Waiter, Customer, Menu, Item, Food, Beverage, Ingredient You may be thinking that the consultant missed a table object. Actually, the customer object is just another way to refer to the table object. When this is the case, we name the object Customer (akaalso known as) Table, because we can control the table, but we need to remember that we care about customers!
Waiters generally are assigned to wait on specific tables. When customers arrive, they are seated at tables and the waiter takes over at that moment indicating how many guests are sitting at that table and brings the menus. In the menu, there are listed several menu items, each with a name, a brief description, its price and whether they are on special. These items can be food items or beverage items. To keep track of inventory, the ingredient object keeps track of how many are on hand and how many are on order. To give an idea of how long it will take to process the order, food items have information on their preparation time. Tables have a number and are either
available or occupied, therefore they must have a way to change their availability. Bills are also responsibility of the table. A bill must be generated before the table can be available, when6 occupied. The waiter is identified by an access code, their name, and their salary. The system must allow servers to use their code to start their shifts and to indicate that their shift has ended.
Draw a Class diagram that describes the relations among these classes. Identify attributes, methods and hierarchies belonging to these classes [Hint: Beverages and Food are menu items] Use UML to draw a class diagram that best describe how these group of objects need to interact
within an Object-Oriented application. Include their attributes, hierarchies, relations, cardinalities/multiplicities.
Step by Step Solution
3.54 Rating (151 Votes )
There are 3 Steps involved in it
Step: 1
I can describe the UML class diagram based on the information you provided Please note that I can on...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