Question: INSTRUCTION: ANSWER QUESTION 3. Question 2. Sketch a Class Diagram for creating different types of Stores for a Megamall based on Factory Pattern. Specification: I.

INSTRUCTION: ANSWER QUESTION 3.

Question 2.

Sketch a Class Diagram for creating different types of Stores for a Megamall based on Factory Pattern.

Specification:

I. The stores are: PC Store, Food Store, Drink Store, Stationery Store, Grocery Store.

II. Every Store class has a "customer" method.

III. The class StoreClient will use the factor class to create different types of Stores.

Requirements:

a. Show the operations/methods in every class.

b. Draw the dependency between the classes.

Question 2 Answer:

INSTRUCTION: ANSWER QUESTION 3. Question 2. Sketch a Class Diagram for creating

QUESTION 3.

Construct a Package Diagram to illustrate the package organization for the Megamall contains different Stores as indicated in Question 2 using the Model-View-Controller architecture pattern.

Provided that,

I. Model with packages: User, StoresSchedule, Price.

II. View with packages: StoresSchedulePage, PricePage.

III. Controller with packages: CustomerCheckin, CustomerCheckout

You can include any extra features and make your own assumption to improve the Diagram.

Megamall no. of storese no. of customer open() Store client Factory oftent Type of Stone no. of stores. Catogory Type-Stove store-Name() create_store !) Food Store Drink Store PC store Grocery Store type Brand price Brond price Type Type Brand price stationary store Type Brand Price Add item. Isolditems) totalidems Type Brand Price Additemsc) Isolditema) total items) TAdd items Sold items Holalitems! ! AddItemsil sold items) Totalitenes Add Items() Sold Item() Total Itemos

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!