Create a program in python based on incremental development processes of collecting user requirements, designing, coding, testing and debugging to implement the following functionalities of a shopping cart:
• The users can add as many items they wish
. • A digital calculator to calculate the amount of all the items in the cart at any point of time
. • Should be able to remove some or all items from the cart depending on the available budget.
a. Specify the user requirements and suitable assumptions made.
b. Design a ShoppingCart class diagram using the UML notation that matches the specifications.
a.) User Requirements for Shopping Cart:
Assumptions:
b.) UML Diagram for ShoppingCart class:
ShoppingCart |
-CartID:String -DateCreated:Date -DateModified:Date -Price:Number |
+additem(item) +removeitem(item) +updateQuantity(item, quantity) +calculateTotalPrice(cart):Number |
Get Answers For Free
Most questions answered within 1 hours.