Question: I am implementing a shopping mall system in c++ One class is of Mall with data members and are possible methods listed below: The mall
I am implementing a shopping mall system in c++
One class is of Mall with data members and are possible methods listed below:
The mall itself. The mall performs the creation of a set of different stores, such as a book store, a shoe store, an electronic games store, etc. The mall greets an arriving customer and allows the customer to shop at the mall. Some of the things a customer can do at the mall are:
Get a list of available stores
Get a shopping cart
Enter a store
Get of list of items available for sale at the store
Add items to the shopping cart
Proceed to checkout and purchase the items
Notable Attributes:
name - the name of the mall
stores - a collection of stores of different types
customers - the customers currently in the mall
Possible Methods:
void enter(Customer c) - customer c enters the mall
void exit(Customer c) - customer c exits the mall
ShoppingCart getShoppingCart - returns an empty shopping cart
Enumeration customers() - returns an enumeration of the customers in the mall
void checkout(shoppingCart cart) - checkout and purchase the items in the shopping cart
Help me out in implementing class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
