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.
Use selection sort to sort A[48] into increasing order, and then print out the sorted list in four rows. There may be duplicates, but that's OK. (65 and 53 appear twice.) Duplicates will appear next to each other in the sorted list.
Write down C++ program to read following text. Count occurrences of each word in text and keep this count in list of elements containing (word, occurrence count) pairs.
Write a program that contains a main function and three other functions that will return various attribute information about an array of floating point
Write a function that raises an integer to a positive integer power. Call the function x_to_the_n, taking two integer arguments x and n.
. Write the class definition for a class called complex.
Write down the c++ program which declares the array of 50 components of type float. Initialize array so that first 25 components are equal to square of the index variable.
Write a program that asks the user to enter a series of one-digit non-negative numbers
Write a program that stores a series of numbers in a binary tree
The integer must contain 3 distinct non-zero number, or the program will print out invalid number.it should print out invalid query.
Write a C++ program that stores lists of names (the last name first) and ages in parallel arrays and sorts the names into alphabetical order keeping the ages with the correct names.
In C++(must be able to compile in Visual Studio ): Write a program to produce ten random permutations of numbers 1 to 10.
Credit Card Number Check. The last digit of a credit card number is the check digit, which protects againsttranscription errors such as an error in a single digit or switching two digits
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