create a PYTHON program that will make a m Sale Management system. The inventory must have 5 categories and each categories must have 5 items that have price. Use item code for items ex. Water $2 - A1 , Coffee $2- A2 Example of categories and items are: Drinks - Water $2, coffee $2 , softdrinks $3 , Tea $1 , Milktea $2 Main course- Sphagetti $3 , Burger $4 , Fries $2, Chicken $3, Pizza $4 requirement outpu

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter2: Elements Of High-quality Programs
Section: Chapter Questions
Problem 1GZ
icon
Related questions
Question
create a PYTHON program that will make a m Sale Management system. The inventory must have 5 categories and each categories must have 5 items that have price. Use item code for items ex. Water $2 - A1 , Coffee $2- A2 Example of categories and items are: Drinks - Water $2, coffee $2 , softdrinks $3 , Tea $1 , Milktea $2 Main course- Sphagetti $3 , Burger $4 , Fries $2, Chicken $3, Pizza $4 requirement output: ~~test case example~~ Choose you want to do. [1] Display menu [2] Buy an item [3] Display your purchased items [4] Exit User: 1 System: Here are the menu: Drinks: Water $2 = A1, coffee $2 = A2 , softdrinks $3 , Tea $1 , Milktea $2 Main course: Sphagetti $3 , Burger $4 , Fries $2, Chicken $3, Pizza $4 (please use item code for item) ~~ the user will press enter ~~ (If the user choose the Display menu, it must have a second choice once the user press the enter) Choose you want to do. [1] Display menu [2] Buy an item [3] Display your purchased items [4] Exit User: 2 Enter the Product /item code: A1 (Water) (If the user enter a wrong code, the system will print "Invalid item code, try to enter again!") System: Want to buy another Item? (Y/N) User: Y System: Enter the product/item code: A2 System: Want to buy another item? (Y/N) User: N (The user will calculate the total , it will subtract to your money and will print user's change) Enter your money: $100 Total: $4 Congrats you bought an item/s! Your change is $98. ~ user will press enter ~ (If the user choose choice 3, the purchased item must be display ) Choose you want to do. [1] Display menu [2] Buy an item [3] Display your purchased items [4] Exit User: 3 System: Your purchased item... 1 A1 1 A2 Total: $4 Your money: $100 Your change: $96 ~ the user will press enter~ (The system should print the following) Want to buy again? (Y/N) User: N ~ user press enter ~ (If user press N, the program will terminate and exit but if the user press Y , the choices will be pop again) System: Thank you for buying!!! (End of program) ******another test case******* Choose you want to do. [1] Display menu [2] Buy an item [3] Display your purchased items [4] Exit User: 3 System: Sorry you dont have purchased items! (After of this, the choices must be pop again) Choose you want to do. [1] Display menu [2] Buy an item [3] Display your purchased items [4] Exit User: 1 (System: ) Here are the menu Drinks - Water $2, coffee $2 , softdrinks $3 , Tea $1 , Milktea $2 Main course- Sphagetti $3 , Burger $4 , Fries $2, Chicken $3, Pizza $4 (please use item code for item) ~~user will press enter~~ Choose you want to do. [1] Display menu [2] Buy an item [3] Display your purchased items [4] Exit User: 4 (System:) Thank you for coming to Supermarket!! Please come again. Ps. Please provide screenshot if source code and output. Thanks!!
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT