Question: Please implement these functions into car.cpp, first image is the header file #include perf.hpp #include doors.hpp class Car{ private: char* manufacturer; char* model; uint32_t zeroToSixtyNs;

 Please implement these functions into car.cpp, first image is the headerfile #include "perf.hpp" #include "doors.hpp" class Car{ private: char* manufacturer; char* model;

Please implement these functions into car.cpp, first image is the header file

#include "perf.hpp" #include "doors.hpp" class Car{ private: char* manufacturer; char* model; uint32_t zeroToSixtyNs; float headonDragCoeff; uint16_t horsepower; DoorKind backseatDoors; uint8_t seatCount; public: Car(); Car(char const* const manufacturerName, char const* const modelName, PerformanceStats perf, uint8_t numSeats, DoorKind backseatDoorDesign); Car(Car const& o); Car& operator=(Car const& o); ~Car(); char const* getManufacturer() const; char const* getModel() const; PerformanceStats getStats() const; uint8_t getSeatCount() const; DoorKind getBackseatDoors() const; void manufacturerChange(char const* const newManufacturer); void modelNameChange(char const* const newMode Name); void reevaluateStats (PerformanceStats newStats); void recountSeats(uint8_t newSeatCount); void reexamineDoors (DoorKind newDoorKind); }; #endif //CAR_HPP Car) o Default constructor. Initialize the pointer type variables with 'NULL' and the numerical variables with 'O! 'DoorKind' variable is also initialized with 'None! Car(char const* const manufacturerName, char const* const modelName, PerformanceStats perf, uint8_t numSeats, DoorKind backseatDoor Design) o Constructor. Initialize the member variables with specific values. Car(Car const& o) o Copy constructor. Initialize the member variables with the values in 'o'. -Car() o Destructor. Recycle the memory of variables. Car& operator=(Car const& o) o Overloaded assignment operator '=! Set the values of the variables in the current object to be those in 'o! char const* getManufacturer() const . Get the string of 'manufacturer! char const* getModel() const o Get the string of 'model! PerformanceStats getStats() const o 'PerformanceStats' is a structure given to you in the head file 'perf.hpp! It summarizes the three parameters 'horsepower', 'zeroTo SixtyNs, and "headonDragCoeff' together. This method gets their values and returns as the structure. uint8_t getSeatCount() const o Get the number of seats in 'seatCount! DoorKind getBackseatDoors() const o Get the type of the doors in 'backseatDoors! void manufacturerChange(char const* const new Manufacturer) o Change the name (string) in 'manufacturer' to the new in 'new Manufacturer! Since the name is of the type string in the memory, please care about the memory management and avoid the memory leak. void modelNameChange(char const* const newModelName) o Change the name (also string) in 'model' to the new in 'new ModelName! void reevaluate Stats(PerformanceStats newStats) o Update the values of 'zeroToSixtyNs', 'headonDragCoeff' and 'horsepower' by using the new parameters in 'newStats! void recountseats(uint8_t newSeatCount) o Set the value of 'seatCount' to be 'newSeatCount'. void reexamineDoors(DoorKind newDoorKind) o Set the kind of the doors in 'backseatDoors' to be 'newDoorKind

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!