Al-Yahmadi Grocery wants to automate their manual calculation of product amounts purchased by a customer. Write python program similar to a CASH REGISTER that will help the grocery store speed up the calculation process.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Part A. Solve the below problems using Documentation Format
(10 marks)
1. Al-Yahmadi Grocery wants to automate their manual calculation of product amounts purchased
by a customer. Write python program similar to a CASH REGISTER that will help the grocery
store speed up the calculation process.
Consider data given below: (vou can assign different values to make your program unique)
Product Code
Price
Description
201
1.300
Red Label Tea
202
0.900
Al-Rawabi Juice (1Iiter)
203
1.200
Mazan Milk
305
3.800
Ariel Detergent Powder
Downy
306
2.100
208
1.750
Al-Noor Chicken
209
0.800
Fruits
210
0.600
Vegetables
Sample Output
=== ==== ==
WELCOMETOALMAWAIIGROCERYSTORE
Product Code
:
202
Number of Pie ces
:
Enter another?
(1 for YES, 0 for NO)
1
:
Product Code
209
:
Number of Pieces
:
3
Enter another?
(1 for YES, 0 for NO): 0
SUMMARY OF PURCHASES
Description
Product Code
Price
tem
Amount
102
Al-Rawahi Juice (1 Liter)
0.900
4.500
109
Fruits
0.800
3
2.400
ΤΟΤAL
6.900
CASH
10.00
CHANGE
8.100
THANKYOUfor shopping! Come Again...
==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ========
===== =
==D= ===
Transcribed Image Text:Part A. Solve the below problems using Documentation Format (10 marks) 1. Al-Yahmadi Grocery wants to automate their manual calculation of product amounts purchased by a customer. Write python program similar to a CASH REGISTER that will help the grocery store speed up the calculation process. Consider data given below: (vou can assign different values to make your program unique) Product Code Price Description 201 1.300 Red Label Tea 202 0.900 Al-Rawabi Juice (1Iiter) 203 1.200 Mazan Milk 305 3.800 Ariel Detergent Powder Downy 306 2.100 208 1.750 Al-Noor Chicken 209 0.800 Fruits 210 0.600 Vegetables Sample Output === ==== == WELCOMETOALMAWAIIGROCERYSTORE Product Code : 202 Number of Pie ces : Enter another? (1 for YES, 0 for NO) 1 : Product Code 209 : Number of Pieces : 3 Enter another? (1 for YES, 0 for NO): 0 SUMMARY OF PURCHASES Description Product Code Price tem Amount 102 Al-Rawahi Juice (1 Liter) 0.900 4.500 109 Fruits 0.800 3 2.400 ΤΟΤAL 6.900 CASH 10.00 CHANGE 8.100 THANKYOUfor shopping! Come Again... ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ======== ===== = ==D= ===
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY