Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started