Question: This program extends the earlier 'Online shopping cart program. (Consider first saving your earlier program). (1) Extend the ItemToPurchase class per the following specifications: .

 This program extends the earlier 'Online shopping cart program. (Consider firstsaving your earlier program). (1) Extend the ItemToPurchase class per the followingspecifications: . Parameterized constructor to assign item name, item description, item price,and item quantity (default values of 0). (1 pt) . Public memberfunctions . SetDescription0 mutator & GetDescription0 accessor (2 pts) PrintitemCost0 Outputs the

This program extends the earlier 'Online shopping cart program. (Consider first saving your earlier program). (1) Extend the ItemToPurchase class per the following specifications: . Parameterized constructor to assign item name, item description, item price, and item quantity (default values of 0). (1 pt) . Public member functions . SetDescription0 mutator & GetDescription0 accessor (2 pts) PrintitemCost0 Outputs the item name followed by the quantity, price, and subtotal .PrintltemDescription0- Outputs the item name and description . Private data members string itemDescription - Initialized in default constructor to none Ex. of PrintitemCost0 output Bottled [ilater 10 @ 1 $10 Ex. of PrintitemDescription0 output Bottled Water: Deer Park, 12 oz. (2) Create three new files: ShoppingCarth - Class declaration ShoppingCart.cpp - Class definition main.cpp - main0 function (Note: main's functionality differs from the warm up) . This program extends the earlier 'Online shopping cart program. (Consider first saving your earlier program). (1) Extend the ItemToPurchase class per the following specifications: . Parameterized constructor to assign item name, item description, item price, and item quantity (default values of 0). (1 pt) . Public member functions . SetDescription0 mutator & GetDescription0 accessor (2 pts) PrintitemCost0 Outputs the item name followed by the quantity, price, and subtotal .PrintltemDescription0- Outputs the item name and description . Private data members string itemDescription - Initialized in default constructor to none Ex. of PrintitemCost0 output Bottled [ilater 10 @ 1 $10 Ex. of PrintitemDescription0 output Bottled Water: Deer Park, 12 oz. (2) Create three new files: ShoppingCarth - Class declaration ShoppingCart.cpp - Class definition main.cpp - main0 function (Note: main's functionality differs from the warm up)

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!