Question: * * in python * * * Submit one zip file with all the programs and all the sample outputs and all related files. This
in python
Submit one zip file with all the programs and all the sample outputs and all related files.
This problem is related and modified to Problem Cash Register and problem Retailitem
Class of Chapter
Part a: Write a class named Retailltem that holds data about six items in a retail grocery store.
The items are Bread oz Milk gallon Eggsone dozen large Butter lb Cheese oz
Ham oz
Then write a class called CashRegister There are only six items in this hypothetical store.
The purpose of the program is to prepare the bill for any customer that comes to the cash
register. This class uses Rerailltem class.
If a customer says that heshe is purchasing breads, gallons of milk, one butter and one
ham, then the cashregister program should calculate the bill and present it to the customer.
Use a GUI to ask the customer for the items and how many the customer wishes to purchase.
Then the bill should be prepared and presented to the customer with the total bill the
customer needs to pay.
You see, this is a model for any kind of grocery store with say, items or items or
any number of items on its shelves.
part b: Prepare a dictionary of items called item item item with random prices
between $ and $cents are permitted. Then prepare a new CashRegister class. This
program also should present the bill to the customer with the total bill.
Be creative and the printed bill should look neat and presentable. Give a name to your grocery
store.
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
