* Use Pdle/Python * Piease follow the instructions of the question. cosC 1336- Programming Fundamentals I Bonus Program Write a class named Retail Item that holds data about an item in a retail store....


* Use Pdle/Python<br>* Piease follow the instructions of the question.<br>cosC 1336- Programming Fundamentals I<br>Bonus Program<br>Write a class named Retail Item that holds data about an item in a retail store. The<br>class should store the following data in attributes:<br>Item Number<br>• Rem Description<br>Units in Inventory<br>• Price<br>Create another class named Cash Register that can be used with the Retail_Item<br>class. The Cash_Register class should be able to intemally keep a list of Retail_Item<br>objects. The class should include the following methods:<br>A method named purchase_item that accepts a Retail_Item object as an<br>argument. Each time the purchase_item method is called, the Retail_Item that is<br>passed as an argument should be added to the list.<br>A method named get_total that returns the total price of all the Retail_Items<br>objects stored in the Cash_Register's internal list.<br>A method named show items that displays data about the Retail_Item objects<br>stored in the Cash_Registerobject's internal list.<br>• A method named clear_items that should clear the Cash_Register object's<br>internal list.<br>Write a main function that uses the Cash_Register class to allow the user to select<br>several items for purchase. When the user is ready to check out, the program should<br>display a list of all the items he or she has selected for purchase, as well as the total<br>price, taxes, and the final price.<br>You will not get credit if the program is not written or does not work as expected.<br>Run your program, with your own data, and copy and paste the output to a file. Create<br>a folder named, fullname_bonus. Copy your source code and the output file to the<br>folder. Zip the folder and upload it to Blackboard.<br>When you upload your source code and output to Blackboard, schedule a time<br>with me to answer a few questions about your code. You must answer all<br>questions correctly to get credit for the program.<br>

Extracted text: * Use Pdle/Python * Piease follow the instructions of the question. cosC 1336- Programming Fundamentals I Bonus Program Write a class named Retail Item that holds data about an item in a retail store. The class should store the following data in attributes: Item Number • Rem Description Units in Inventory • Price Create another class named Cash Register that can be used with the Retail_Item class. The Cash_Register class should be able to intemally keep a list of Retail_Item objects. The class should include the following methods: A method named purchase_item that accepts a Retail_Item object as an argument. Each time the purchase_item method is called, the Retail_Item that is passed as an argument should be added to the list. A method named get_total that returns the total price of all the Retail_Items objects stored in the Cash_Register's internal list. A method named show items that displays data about the Retail_Item objects stored in the Cash_Registerobject's internal list. • A method named clear_items that should clear the Cash_Register object's internal list. Write a main function that uses the Cash_Register class to allow the user to select several items for purchase. When the user is ready to check out, the program should display a list of all the items he or she has selected for purchase, as well as the total price, taxes, and the final price. You will not get credit if the program is not written or does not work as expected. Run your program, with your own data, and copy and paste the output to a file. Create a folder named, fullname_bonus. Copy your source code and the output file to the folder. Zip the folder and upload it to Blackboard. When you upload your source code and output to Blackboard, schedule a time with me to answer a few questions about your code. You must answer all questions correctly to get credit for the program.
Initial Inventory<br>Description<br>Pants<br>Units in Inventory<br>Item Number<br>Price<br>19.99<br>25.95<br>12.50<br>79.00<br>1.98<br>49.99<br>85.95<br>1000<br>10<br>2000<br>3000<br>4000<br>Jeans<br>2<br>Shirt<br>Dress<br>Socks<br>15<br>3<br>5000<br>50<br>6000<br>7000<br>Sweater<br>Jacket<br>Program Menu<br>1. Pants<br>2. Jeans<br>3. Shirt<br>4. Dress<br>5. Socks<br>6. Sweater<br>7. Jacket<br>8. Clear Cash Register<br>9. Show Inventory<br>10. Check Out<br>51<br>

Extracted text: Initial Inventory Description Pants Units in Inventory Item Number Price 19.99 25.95 12.50 79.00 1.98 49.99 85.95 1000 10 2000 3000 4000 Jeans 2 Shirt Dress Socks 15 3 5000 50 6000 7000 Sweater Jacket Program Menu 1. Pants 2. Jeans 3. Shirt 4. Dress 5. Socks 6. Sweater 7. Jacket 8. Clear Cash Register 9. Show Inventory 10. Check Out 51
Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here