Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
This is a multi-part problem in which you will construct several object classes and a short demonstrationprogram1. Submit the completed program (all 4 parts) including all class definitions/implementations in asingle .cpp source file (i.e., do not construct separate files for class headers and implementation).A used car dealership maintains an inventory of several types and models of vehicles. There are three kinds ofvehicles: Cars, Trucks and SUVs. Regardless the type, the dealership maintains the following information forevery vehicle:• Make : string• Model : string• Year : integer• Mileage : integerAdditional information is maintained for each individual vehicle depending on its type:For Cars: Number of doors (2 or 4)For Trucks: Drive type (2-wheel drive or 4-wheel drive)For SUVs: Passenger CapacityPart 1Construct a base class named Vehicle to maintain the common vehicle data. The class should include aconstructor that will support initializing all 4 attributes as well as separate accessor and mutator methods foreach data attribute.Part 2Construct three additional classes named Car, Truck and SUV to represent Cars, Trucks, and SUVsrespectively. Each of these classes should be derived from the Vehicle class and extended by adding theattributes unique to the type of vehicle. Each class should provide a constructor to initialize its attribute(s) aswell as the attributes of the parent class. Provide accessor and mutator methods for each class to get and set theattributes for the particular class.Add a method named Display to each of the four classes to print out the individual vehicle information. Forthe Vehicle class, the Display method should print the following (one element per line):Make: vehicle_makeYear: vehicle_yearModel: vehicle_modelMiles: vehicle_mileageEach vehicle-type class (Car, Truck, SUV) should print out the information specific to its own type in additionto the vehicle information. Note that you can print the vehicle information using a call to the base classDisplay method: Vehicle::Display(). Here is an example of the output for a Car:Inventory unit: CarMake: AudiYear: 2009Model: A8Miles: 40000Number of doors: 4Part 4Finally, write a main program to test your classes. Instantiate 5 objects to represent the following vehicles:car: 1987 Audi A6 4-door with 185,000 milescar: 1963 Volkswagen Beetle 2-door with 240,000 milestruck: 2007 Ford 4-wheel drive F-150 with 82,000 milessuv: 2001 8-passenger Chevrolet Suburban with 118,000 milessuv: 2010 5-passenger Kia Sorento with 29,000 milesPrint out the vehicle information for all 5 vehicles using the .Display() method for each vehicle.
Write a program to compute the diameter in centimeters of a steel rod, an aluminum rod, and a copper rod, which can withstand a particular compression load.
Write down C++ program which reads N numbers (positive, negative, integer and double numbers) from keyboard, computes and shows the following information. Largest number of all numbers entered from keyboard.
Write a program that accepts as input, without prompts, a series of short values, terminated by end of file. The program outputs one line:
Perform operations on arrays execute tests and repetitions
Queue Converter, Write a program that stores a series of numbers in a binary tree. Then have the program insert the values into a queue in ascending order. Dequeue the values and display them on the screen to confirm that they were stored in the prop..
Write a webservices application that does a simple four function calculator
Suppose that an object of class three enters its scope, so the constructors of theses classes will execute. Determine the order in which the constructors of these classes will execute.
Prompt the user to enter an item name (one word only), a quantity and a price. For this step, in addition to functionality, I'll be looking at: location of the variable declarations; appropriateness of data types selected; appropriateness of the va..
programming assignment is to tweak the existing Mammal program and create your own Vehicle program.
Design a base class shape with virtual functions
In C++, write a program that calculates 10,000 tries. These tries are based upon a rat trying to escape from a maze. Keep adding minutes until the rat is free and when he is free that is 1 try so we need 10,000. We start by randomly generating a numb..
Write a program that stores a series of numbers in a binary tree
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd