(Solved):Design a class called ItemToPurchase. This class has the following attributes: item_name, item_price, and item_quanity. The ItemToPurchase class should have methods to return the current values of… View Answer…

 

Question

Design a class called ItemToPurchase.

This class has the following attributes: item_name, item_price, and item_quanity.

The ItemToPurchase class should have methods to return the current values of these attributes. In addition, this class has a method get_item_cost to return the cost of this item (which is the product of item_price and item_quantity).

Design a class called Customer. This class has the following attributes: customer_name, shopping_date, and shopping_cart.

The shopping_cart attribute is a list of

Scroll to top