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 8 Cash Register and problem 5 Retailitem
Class of Chapter 10.
Part a: Write a class named Retailltem that holds data about six items in a retail grocery store.
The items are Bread(24 oz), Milk(1 gallon), Eggs(one dozen large), Butter(1 lb), Cheese (8 oz),
Ham(8 oz).
Then write a class called CashRegister6. 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 he/she is purchasing 2 breads, 2 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, 10000 items or 100 items or
any number of items on its shelves.
part b: Prepare a dictionary of 20 items called item 1, item 2,... item 100 with random prices
between $1 and $10(cents are permitted. Then prepare a new CashRegister20 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.
* * in python * * * Submit one zip file with all

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!