Answered step by step
Verified Expert Solution
Link Copied!

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: .

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Donald A. Carpenter Fred R. McFadden

1st Edition

8178088045, 978-8178088044

More Books

Students also viewed these Databases questions