Question: I need a C++ code for program 1a and 1b. You have use program 1a for 1b. Please provide the c++ code for both parts



I need a C++ code for program 1a and 1b. You have use program 1a for 1b. Please provide the c++ code for both parts as well as a screeshot of the working code.
Thanks
Program A: The following is a specification of three classes: class vehicle: Attributes Age, an integer The age of the vehicle Price, a float The price of the vehicle Behaviors Vehicle 3 default constructor sets age-o, and price 0.0 see tAge Takes an integer parameter returns nothing set Price Takes a float parameter, returns nothing get Age 3 Takes no parameters returns the vehicle's age get Price Takes no parameters, returns the vehicle's price End Class vehicle Class Car: Attributes An object of type Car has all the attributes of an object of type Vehicle Additionally, Cars have attributes that Vehicles do not Race Carstatus, a boolean true or false Behaviors An object of type car has all the behaviors of an object of type Vehicle Additionally, Cars have behaviors that vehicles do not Car default constructor sets Racecarstatus false setRacecarstatus Takes an boolean parameter, returns nothing getRaceCarstatus Takes no parameters, returns the car's race car status End Class Car
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
