Retail Sales Analysis
Scenario
You work for a small cafe that sells various types of coffee, tea, and pastries. The owner has asked you to create a program that helps them keep track of their inventory and sales. The owner wants to be able to add new items to the menu, update the quantities of existing items, and see a summary of the total sales for each item at the end of the day.
Instructions
Write a Python program that allows the cafe owner to perform the following actions:
Add new items to the menu: The program should ask the user to enter the name, category, price, and quantity of a new item. The program should then add the item to a menu list.
Update the quantities of existing items: The program should display a table of all the items in the menu list with their corresponding quantities. The user should be prompted to enter the name of the item they want to update and the new quantity. The program should then update the quantity of the specified item.
View the summary of total sales for each item: The program should display a table of all the items in the menu list with their corresponding quantities and total sales. The total sales should be calculated as the product of the price and quantity of each item sold during the day.
Sales Analysis at the end price wise : At the end, through program one should be able to see the sales price in descending order means item with highest sale should be the first item to be seen in the list.
Welcome to the cafe inventory and sales tracker!
What would you like to do?
Add new item to menu
Update item quantities
View sales summary
Quit
Enter your choice (1-4): 1
Last updated