Question: In Python 3, please. 2.6 Program: Checkout System This assignment requires you to build a simple checkout system. The requirements are: (1) Build an Item
2.6 Program: Checkout System This assignment requires you to build a simple checkout system. The requirements are: (1) Build an Item class with the following specifications: Attributes (2 pts) .item_name (string) . item_price (float) item_quantity (int) (2) Add a default constructor to the Item class. The constructor should Initialize the item's name = 'Empty item's price = 0.0, item's quantity -0. (1 pt) (3) Add a method to Item called print_item_cost that prints the item name, the item quantity, the unit price and total price for this item. The prices should have two decimal points. (1 pt) Example of the print_item_cost() output: Bottled Water 10.00 $1 - $10.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
