Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ please. thank you!! Program Specifications I highly recommend you complete this program in the order of the given steps. Be sure to unlt test
C++ please. thank you!!
Program Specifications I highly recommend you complete this program in the order of the given steps. Be sure to unlt test each function as you implementit, before you submit it to the zyBook Note that you can also submit your code to zyBooks at each step to get feedback as long as you have stubs for each function you have not begun to implement yet. (Step 1) Create three files: Item Topurchaseh-Class declaration .ItemToPurchase.cpp-Class definition main.cpp - main function (Until you get to step 4, just use this main.cpp file to unit test your functions outside of zyBooks Alternatively, you can create a test.cpp file that is only used outside of zyBooks that contains all of your unit tests. In this case, leave the main function in main.cpp blank until you get to step 4) Build the ItemToPurchase class with the following specifications. Default constructor Public class functions (mutators & accessors) .setName(& name DetPricel & price) setQuantity0 & quantity Private doto members string.name. Initialized in default constructor to "none" int price. Initialized in default constructor too Int quantity-Initialized in default constructor to (Step 2) Extend the ternToPurchase class per the following specifications: . Parameterized constructor to assign tem name, tem description, item price, and tom quantity default values of C) . Public member functions .setDescription() mutator & description accessor printitemCesto-Outputs the item name followed by the quantity, price, and subtotal printitem Description - Outputs the item name and description . Private data members string.description - Initialized in default constructor to "none" Ex of printitemCost output: Bottled Water 1051 - $10 Ex of printitem Description output Bottled water: Deer Park, 12 oz. (Step 3) Create two new files Shopping Carth-Class declaration Shopping Cart.cpp Class definition Build the Shopping Cart class with the following specifications. Note: Some can be function stubs (empty functions) initially, to be completed in later steps Default constructor Parameterized constructor which takes the customer name and date as parameters Private data members string customerName Initialized in default constructor to 'none' string currentDateInitialized in default constructor to January 1, 2016 vector 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