Question: The class should have the following constructors: A default constructor that assigns the term NA to all string variable and 0 to the numerical variables.

The class should have the following constructors:

A default constructor that assigns the term "NA" to all string variable and 0 to the numerical variables.

A constructor that accepts values as arguments and assigns them to the appropriate member variables.

Write the appropriate mutator functions (setters) that store values in these member variables and accessor functions (getters) that return the values of the private member variables.

Include the additional member functions listed below:

printVehicleInfo: the member function does not take a parameter. The function displays information about a vehicle as shown below.

Make: Toyota

Model: RAV_4

Year: 2019 (used)

Price: $32158.99

== Style: SUV

== Color: Midnight_blue

== License plate number: 1234560

generateLicensePlate: the function does not take a parameter. The function should randomly generate a number between 1111111 and 9999999 and assign it to the license plate member variable.

/*PASTE CODE HERE -- The content of the VehicleTypeHeader.h file only*/

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!