Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

My assignment is to use 3 design patterns . They can be of any kind (example: Observer, Template, Strategy, Factory ETC.) To modify this class

My assignment is to use 3 design patterns. They can be of any kind (example: Observer, Template, Strategy, Factory ETC.) To modify this class diagram I have created for this scenario

Consider the following high-level description for GameSpeed retailer:

? The store has a StoreManager, Customers, and Salesmen ?

The retailer sells new and pre-owned different game consoles, games, and tablets

? The StoreManager can Add/Delete/Update products

? Salesman can create Customer accounts

A customer can subscribe/unsubscribe to receive email notifications for new product releases

A customer can subscribe/ unsubscribe to receive email notifications for Special Sale Events

? There are 3 Console Manufacturers and each offers its own models:

1. Microsoft

1. XBOX One

2. XBOX 360

2. Sony

1. PS3

2. PS4

3. Nintendo

1. Wii

2. WiiU

? There are 3 Game Makers

1. Electronic Arts

2. Activision

3. Take-Two Interactive

? Every console might have accessories that could be bought separately

? Retailer offers warranty that can be purchased by the customer for every console

? The customer can pre-order products ? The customer can trade-in products ? The customer can place an order online, check the status of the order, or cancel the order.

? The customer can pay in cash, check, or credit card ? The customer has the choice to enroll (or cancel) and become PowerMember in order to receive 5% discount for every item purchased for an annual fee of $100

? Some of the products may have store special-discounts

? Some of the products may have manufacturer rebates

? The customer can choose one of the following options when buying a new console

1. Buy the new console with no replacement

2. Buy the new console with 1 year replacement for 50% fee of the console retail price; under this plan the customer can replace the console by a new one any time during the year (The console can be replaced only once for the customer).

3. Buy the new console with lifetime replacement for 65% fee of the console retail price; under this plan the customer can replace the console by another new one any time (The console can be replaced only once for the customer).

? The customer can rent a console.However, there are a number of lease plans that the store like to offer its customers

1. Daily rental (for example renting the console for 2 days)

2. Monthly rental (for example rent the XBOX ONE console for 2 months with rental $20/month)

3. Yearly rental (for example rent the XBOX ONE console for $100/year)

I have created the following diagram, but I need to modify it using 3 design patterns on any kind. Thanks.

image text in transcribed

provide warranty to customer StoreManager Salesman Retailer Customer customerName productName productlD newConsoleNoReplac ement, newConsolewith1Year Replacement, newConsolewithLifetime Replacement, newGameConsole string; preownedGamesConsole String games String tablet String createCustomerAccount0; add0 delete0) update0) sells0 warranty0 create account for customer preOrderProducto; tradeinProducto; placeOrder) checkStatus0 cancelOrder) payForOrder0; enroll0 buyNewConsole) rentConsole create/delete/add product Sells console Sells games buy/rent console buy products GameMaker ConsoleManufacturer gameType Product differentAccessories String storeSpecialDiscount manufacturerRebates electronicArts0; activisionO take Twointeractive microsoft0; sony0 nitendo0: buyaccessories0 dailyRental(; monthlyRental; yearlyRental0 Receive email of special sale differentDiscounts0 Recieves email of new product EmailforNewProduct EmailforSpecial Sale productName productlD saleName salePercentage saleDateFrom saleDateUpTo Price modelO; saleltemsO DiscountO provide warranty to customer StoreManager Salesman Retailer Customer customerName productName productlD newConsoleNoReplac ement, newConsolewith1Year Replacement, newConsolewithLifetime Replacement, newGameConsole string; preownedGamesConsole String games String tablet String createCustomerAccount0; add0 delete0) update0) sells0 warranty0 create account for customer preOrderProducto; tradeinProducto; placeOrder) checkStatus0 cancelOrder) payForOrder0; enroll0 buyNewConsole) rentConsole create/delete/add product Sells console Sells games buy/rent console buy products GameMaker ConsoleManufacturer gameType Product differentAccessories String storeSpecialDiscount manufacturerRebates electronicArts0; activisionO take Twointeractive microsoft0; sony0 nitendo0: buyaccessories0 dailyRental(; monthlyRental; yearlyRental0 Receive email of special sale differentDiscounts0 Recieves email of new product EmailforNewProduct EmailforSpecial Sale productName productlD saleName salePercentage saleDateFrom saleDateUpTo Price modelO; saleltemsO DiscountO

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

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

1. Who should participate and how will participants be recruited?

Answered: 1 week ago