Question: This program extends the earlier Online shopping cart ( Part 1 ) program. ( Consider first saving your earlier program ) . Step 1

This program extends the earlier "Online shopping cart (Part 1)" program. (Consider first saving your earlier program). Step 1: Extend the ItemToPurchase class to contain a new attribute. (2 pts) item_description (string)- Initalized in default constructor to "none" Implement the following method for the ItemToPurchase class. print_item_description()- Prints item_description attribute for an ItemToPurchase object. Ex. of print_item_description() output: Bottled Water: Deer Park, 12 oz. Step 2: Build the ShoppingCart class with the following data attributes and related methods. Parameterized constructor which takes the customer name and date as parameters (2 pts) Attributes customer_name (string)- Initialized in default constructor to "none" current_dat

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 Databases Questions!