Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

INSTRUCTION: ANSWER QUESTION 3 (Just don't waste my attempt if you don't know how to do it, I will report on it if I found

INSTRUCTION: ANSWER QUESTION 3 (Just don't waste my attempt if you don't know how to do it, I will report on it if I found it)

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.

*Notes: QUESTION 3 NEED TO REFER QUESTION 2; So, kindly refer to the following Question 2 answer:

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:

image text in transcribed

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) Isolditems) total items) TAdd items Sold items totalitems! ! AddItemsil sold items) Total items Add Items() Sold Item() Total Itemos

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions