Question: Scenario: You are tasked with creating a simple online shopping system. The system should allow customers to browse items, add them to a shopping cart,
Scenario: You are tasked with creating a simple online shopping system. The system should allow customers to browse items, add them to a shopping cart, proceed to checkout, and generate an order summary. Additionally. the bystem needs to keep track of inventory for each item. The system should: - Display a catalog of avalable items with delalis like name, price, and quantity available - Allow customers to add items to their shopping cart. - Calculate the total cost of liems in the cart at checkout. - Deduct the purchased quantity from the catalog inventory when an order is placed. - Generate an order nummary displaying items purchased, quantibes, total cost, and any applicable taxes or discounts - Any needed helper methods Question: 1. Create a UML class relationship diagram. Show all needed aftributes and methods for each class and how they are all connected with each other. (15 points) 2. Create nessasary classes and methods to implement the online shopping system based on the provided recuirements. Define methods for displaying the catalog, adding items to the cart, calculating the total cost, managing inventory, and generating an order summary (25 points) Note to a Student: Use appropriate data structures
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
