Design? and implement a C++ class called Car that handles information regarding car prices,
service plans and discounts if you buy a specific car. Think of all the things you would want to
do with such a class and write corresponding member functions for your Car class. Your class
declaration should be well-documented so that users will know how to use it.
Write a main program that does the following:
?? Declare an array to hold information for different types of cars. The elements of the array
must be of type Car.
?? You must have member variables to hold the price of a car, the value (in Rands) of the
service plan, type of the car, discounts, etc. Initialise the array with applicable
?? The criteria for getting a special discount, is that the buyer agrees to a service plan.
Determine the total price of each car by deducting the applicable discount amount from
the price, and then adding the value of the service plan, to give the new price for the car.
Display the car price including the service plan amount, without and with the discount.?
(a)? Turn your Car class into an ADT, so that separate files are used for the interface and
implementation. Use separate compilation to compile the implementation separate from
the application file that tests the ADT.
(b)? Adapt? the? application? program? to? use? a? vector? instead? of? an? array.? It? should? not? be
necessary to change the class interface or implementation file in any way.
PLEASE NOTE: The enrichment exercises do not form part of the assignment. It is for practice
This question was answered on: Oct 07, 2020
Buy this answer for only: $15
This attachment is locked
We have a ready expert answer for this paper which you can use for in-depth understanding, research editing or paraphrasing. You can buy it or order for a fresh, original and plagiarism-free copy (Deadline assured. Flexible pricing. TurnItIn Report provided)
Pay using PayPal (No PayPal account Required) or your credit card . All your purchases are securely protected by .
About this QuestionSTATUS
Oct 07, 2020EXPERT
GET INSTANT HELP/h4>
We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.
You can also use these solutions:
- As a reference for in-depth understanding of the subject.
- As a source of ideas / reasoning for your own research (if properly referenced)
- For editing and paraphrasing (check your institution's definition of plagiarism and recommended paraphrase).
NEW ASSIGNMENT HELP?
Order New Solution. Quick Turnaround
Click on the button below in order to Order for a New, Original and High-Quality Essay Solutions. New orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.
WE GUARANTEE, THAT YOUR PAPER WILL BE WRITTEN FROM SCRATCH AND WITHIN YOUR SET DEADLINE.