Question: I need help in with this small project. In this project, I need to use Python to write an object - oriented program that simulates
I need help in with this small project. In this project, I need to use Python to write an objectoriented program that simulates the checkout process of online shopping. A file called products.csv is provided. The format of producs.csv is productName price, inventory The program loads the product list from the file. Make the code as SIMPLE as you can make it When program starts, a list of commands is displayed for customer to choose from: ListCartAddRemoveCheckoutExit If the customer chooses List a list of products as well as price are displayed. If Add is selected, prompts will ask for which product and quantity to add to the cart. This action fails if quantity is over current inventory. An error message should be displayed. If Cart is selected, items in the shopping cart together with the price and quantity will be displayed. If Remove is selected, prompts will ask for which item in the shopping cart to remove and the quantity to remove. If Checkout is selected, calculate the shopping cart and display subtotal, tax and total. At the end of the checkout, inventory should be updated. If Exit is selected, update products.csv with the current inventory and exit the program. Your program should be able to handle user errors. Project Report You need to write a report that: Has UML diagram of the class design Show sample outputs from the program screenshots
products.csv file: The Bourne Identity Harry Potter The Holy Grail Arrival Hidden Figures Fantastic Beastes Frozen The Godfather Analyze This American Splendor Lego Movie Transformers Limitless The Matrix
The Bourne Identity Harry Potter The Holy Grail Arrival Hidden Figures Fantastic Beastes Frozen The Godfather Analyze This American Splendor Lego Movie Transformers Limitless The Matrix
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
