Create a UML class diagram for the following problem: The McDonald’s company has several restaurants in Budapest. Each restaurant has a unique ID and an address. They sell cheeseburger for 500 HUF, BigMac for 1000 HUF, and Chicken McNuggets for 800 HUF. All three can be ordered alone or in small, medium, or large menu. The different menus mean French fries and drink in addition. The small menu costs 500 HUF, the medium is 700 HUF, and the large is 1000 HUF in addition. The customers get a loyalty card from the McDonald’s company which has a unique number. Based on the card, it can be got what kind of foods were ordered by that guest in the different restaurants. Make it possible to populate this problem: create methods to add new restaurant, customer, loyalty card, and orders related to any of the cards. Is it true that each restaurant of the company has a guest who has spent more than 10000 HUF? How much has a guest spent in a given restaurant? How many guests have spent more than 10000 HUF in a given restaurant? Apply design patterns, point at where they are used, and name them!
Create a UML class diagram for the following problem:
The McDonald’s company has several restaurants in Budapest. Each restaurant has a unique ID and an address. They sell cheeseburger for 500 HUF, BigMac for 1000 HUF, and Chicken McNuggets for 800 HUF. All three can be ordered alone or in small, medium, or large menu. The different menus mean French fries and drink in addition. The small menu costs 500 HUF, the medium is 700 HUF, and the large is 1000 HUF in addition.
The customers get a loyalty card from the McDonald’s company which has a unique number. Based on the card, it can be got what kind of foods were ordered by that guest in the different restaurants.
Make it possible to populate this problem: create methods to add new restaurant, customer, loyalty card, and orders related to any of the cards.
Is it true that each restaurant of the company has a guest who has spent more than 10000 HUF?
How much has a guest spent in a given restaurant?
How many guests have spent more than 10000 HUF in a given restaurant?
Apply design patterns, point at where they are used, and name them!
Step by step
Solved in 2 steps with 1 images