Question
Draw class diagram for online shopping system. Make necessary assumptions.
Answer :
Word Count : 576
______ __________ ___ ___ ____ _____ ________ _____ __________ ___ _____ _____.
____ ________ ________ _________ _________ _________ _______ ____.
___ _______ __________ _____ ___.
________ _____ _____ _______ ___ __________ __________ _______ _________ ___.
__________ ____ _____ _______ _______ ____ __________ ___ ________ _________ ______.
________ ____ _____ ___ ___ _______ ________ ________ _____ _________ ___.
___ _____ _____ _____ _____ ______ __________ ______ ________ ______ ________.
_______ _____ _______ __________ __________ _________ __________ ___ __________.
_____ ___ __________ ______ __________ __________ _______ _____.
______ _________ _________ ________ _______ _____.
____ ________ ________ ____ _______ ____ _________ ____.
__________ _______ _________ ______ ____ _________ ___ __________ ______ ______ _____.
_________ ____ ____ _______ __________ __________ _____ _________ ______ ____ ______ ___.
_________ __________ __________ ______ ____ _________ ____ _________ ___ ______ __________ ____.
_________ __________ ______ __________ ___ _______ ___ ________ _______ ___ _______ _____.
________ ___ ________ ____ __________.
______ ______ _________ ________ ____.
_______ _____ _______ __________ _________ _________ ________ _______ _________ _______ ___ _______.
__________ _______ _______ ______ _______ _____ _____.
____ _______ ___ _______ __________ ______ __________ _________ ____.
____ ____ ___ ________ ___ _____ ________ ___ _____ _________.
_______ ___ __________ ________ _________ _________.
_________ ___ ______ ____ ____ _________ _____ ______ __________ _________.
___ __________ _______ ____ ________ _________ __________ ______ _________ ____ _________ ________.
_______ _____ ___ ________ __________.
_______ ________ _______ __________ __________ _________ ___.
___ _______ _____ __________ ______ _______ _________ _________.
___ _________ _____ ____ ______ ___ ______ ______ ___.
___ _______ ____ _____ _________ ________.
_________ __________ _________ _______ _____ ___ _________ ______ _________.
__________ ______ _____ ______ _________ ________ ________ __________ _________ ___.
______ _________ _____ ____ _______ __________ ___ ______.
_______ ________ _________ _______ _________ __________ ______ ______ ______.
__________ _____ _________ ____ _______ ____ ____.
_____ ____ _________ _____ ___ ___ __________ ______ ___.
______ ______ __________ __________ ______ _____.
________ ______ _____ _______ _____.
______ ________ ________ ________ ___.
___ ___ __________ ______ _________ _____ _____ ______ _____ _______.
_________ ________ _________ ______ _____.
_________ ________ _____ _______ ___ _________.
__________ _______ _________ ________ _______ _____ _________ ____ __________ ___.
________ _____ ______ ____ _______.
________ __________.
Skip in 10
In an online shopping system, the main objective is to create a design that allows users to browse, select, and purchase items through an e-commerce platform. The system involves multiple stakeholders such as customers, products, orders, and payment processes. To illustrate the structure of the system, we can design a class diagram that captures the key components and their relationships.
Classes and their Relationships:
-
Customer
- Attributes:
customerID: Stringname: Stringemail: Stringaddress: StringphoneNumber: String
- Methods:
register(): Allows a new customer to create an account.login(): Allows a customer to log into their account.viewCart(): Allows a customer to view the items in their shopping cart.placeOrder(): Initiates an order placement.makePayment(): Makes a payment for the order.
- Attributes:
-
Product
- Attributes:
productID: Stringname: Stringdescription: Stringprice: Floatstock: Integer
- Methods:
displayProductDetails(): Displays detailed information about the product.checkAvailability(): Checks if the product is in stock.
- Attributes:
-
ShoppingCart
- Attributes:
cartID: Stringcustomer: Customeritems: List<Product>totalAmount: Float
- Methods:
addItem(product: Product): Adds a product to the shopping cart.removeItem(product: Product): Removes a product from the cart.updateQuantity(product: Product, quantity: Integer): Updates the quantity of a product.calculateTotal():
- Attributes:
____ ________ ________ _________ _________ _________ _______ ____.
___ _______ __________ _____ ___.
________ _____ _____ _______ ___ __________ __________ _______ _________ ___.
__________ ____ _____ _______ _______ ____ __________ ___ ________ _________ ______.
________ ____ _____ ___ ___ _______ ________ ________ _____ _________ ___.
___ _____ _____ _____ _____ ______ __________ ______ ________ ______ ________.
_______ _____ _______ __________ __________ _________ __________ ___ __________.
_____ ___ __________ ______ __________ __________ _______ _____.
______ _________ _________ ________ _______ _____.
____ ________ ________ ____ _______ ____ _________ ____.
__________ _______ _________ ______ ____ _________ ___ __________ ______ ______ _____.
_________ ____ ____ _______ __________ __________ _____ _________ ______ ____ ______ ___.
_________ __________ __________ ______ ____ _________ ____ _________ ___ ______ __________ ____.
_________ __________ ______ __________ ___ _______ ___ ________ _______ ___ _______ _____.
________ ___ ________ ____ __________.
______ ______ _________ ________ ____.
_______ _____ _______ __________ _________ _________ ________ _______ _________ _______ ___ _______.
__________ _______ _______ ______ _______ _____ _____.
____ _______ ___ _______ __________ ______ __________ _________ ____.
____ ____ ___ ________ ___ _____ ________ ___ _____ _________.
_______ ___ __________ ________ _________ _________.
_________ ___ ______ ____ ____ _________ _____ ______ __________ _________.
___ __________ _______ ____ ________ _________ __________ ______ _________ ____ _________ ________.
_______ _____ ___ ________ __________.
_______ ________ _______ __________ __________ _________ ___.
___ _______ _____ __________ ______ _______ _________ _________.
___ _________ _____ ____ ______ ___ ______ ______ ___.
___ _______ ____ _____ _________ ________.
_________ __________ _________ _______ _____ ___ _________ ______ _________.
__________ ______ _____ ______ _________ ________ ________ __________ _________ ___.
______ _________ _____ ____ _______ __________ ___ ______.
_______ ________ _________ _______ _________ __________ ______ ______ ______.
__________ _____ _________ ____ _______ ____ ____.
_____ ____ _________ _____ ___ ___ __________ ______ ___.
______ ______ __________ __________ ______ _____.
________ ______ _____ _______ _____.
______ ________ ________ ________ ___.
___ ___ __________ ______ _________ _____ _____ ______ _____ _______.
_________ ________ _________ ______ _____.
_________ ________ _____ _______ ___ _________.
__________ _______ _________ ________ _______ _____ _________ ____ __________ ___.
________ _____ ______ ____ _______.
________ __________.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.