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
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
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
Knowledge Booster
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.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education