Question: JAVA CODE Please create the uml diagram and provide the code. Also, please explain what you did, thanks.. The Store Manager Class Store Manager is

JAVA CODE Please create the uml diagram and provide the code. Also, please explain what you did, thanks..

JAVA CODE Please create the uml diagram and provide the code. Also,please explain what you did, thanks.. The Store Manager Class Store Manager

The Store Manager Class Store Manager is the brain of the system. It contains all the functionality for managing the Inventory, Shopping Carts, and providing information to the StoreView class. Store Manager manages a single Inventory and it will have a variety of methods - two for now- to interact with this Inventory object. A Store Manager object should: Create a new Inventory object upon object creation (i.e., when a Store Manager object is created). Have functionality to check how much stock of a given Product is in the Inventory. Have functionality to process a transaction given an Array of Product information. For example, imagine that the content of a user's shopping cart is as follows: "[[productID1, quantity), [product/D2, quantity], [product/D3, quantity]]. Given each productID, your method should: Check that the desired quantity exists in the Inventory and return the total for all of the Products. If there is insufficient quantity of any of the products, your method should return some indication of this failure. It could be, for example -1. Remember to subtract the quantities from the Inventory stock if the transaction is successful. O O O The Store Manager Class Store Manager is the brain of the system. It contains all the functionality for managing the Inventory, Shopping Carts, and providing information to the StoreView class. Store Manager manages a single Inventory and it will have a variety of methods - two for now- to interact with this Inventory object. A Store Manager object should: Create a new Inventory object upon object creation (i.e., when a Store Manager object is created). Have functionality to check how much stock of a given Product is in the Inventory. Have functionality to process a transaction given an Array of Product information. For example, imagine that the content of a user's shopping cart is as follows: "[[productID1, quantity), [product/D2, quantity], [product/D3, quantity]]. Given each productID, your method should: Check that the desired quantity exists in the Inventory and return the total for all of the Products. If there is insufficient quantity of any of the products, your method should return some indication of this failure. It could be, for example -1. Remember to subtract the quantities from the Inventory stock if the transaction is successful. O O O

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!