Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use soild principles ( ORP,OCP,LSP, ISP ,DIP) and deign patterns to create the class diagram A caf is planning to develop a systern to

please use soild principles ( ORP,OCP,LSP, ISP ,DIP) and deign patterns to create the class diagram image text in transcribed
A caf is planning to develop a systern to manage and calculate the total prices of different types of coffee. The caf menu Includes American coffee, espresso, cappuccino and Turkish coffee. The customer can order his/her favorite coffee type from the cashier who will use the system to input the order. The cashier, based on the order, can specify the size of the coffee (small, medium or arge). The prices of the coffee are as following: American coffee price is 3.5. Espresso price is 1.75. Cappuccino price is 4.25. Turkish coffee price is 2.5. The customer can also have some additives on his/her cup of coffee. The additives with their prices include: Milk price is 1.1. Flavor price is 2.1. Diet price is Sweetener 24. Decaffeinated coffee price is 5.5. Foar price is 0.3. On the total price, 16% tax will be added. The customer can pay either in cash or by credit card. I cash, the cashier will confirm the payment by the system. If by credit card, the customer swipes the credit card, and the bank confirms the payment Customers of the caf are interested in offers provided by the caf. Accordingly, each customer can leave his/her mobile number to receive a message once an offer is available. In this case, the customer will enter the website of the caf and register using his mobile number Registration includes entering the first name. last name, email address, age and mobile number. However, email address and age are optional information as the customer can skip entering them. The other information is mandatory. The offer is of type string. An example of an offer is "Buy One Get One Free In the future, the caf is thinking of removing or adding some other types of coffee depending on the demand. The manager of the caf can use the system to add or remove coffee types. For the above scenario: 1. Draw a suitable Class diagram using appropriate SOLID principles and design patterns and For each used SOLID principle and design patter, mention where have you used it and why

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

Recommended Textbook for

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions

Question

Explain Coulomb's law with an example

Answered: 1 week ago

Question

What is operating system?

Answered: 1 week ago

Question

What is Ohm's law and also tell about Snell's law?

Answered: 1 week ago

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago