Question: C++ Having the need to keep some information regarding motorized vehicles, design and implement the class(es) to fulfill the following data. Number of wheels. .

C++  C++ Having the need to keep some information regarding motorized vehicles,

Having the need to keep some information regarding motorized vehicles, design and implement the class(es) to fulfill the following data. Number of wheels. . The weight. . The odometer reading. . The number of passengers. . The load weight for vehicles with cargo bay The motorized vehicles can be a motorcycle, a car or a truck. Create the class(es) and all the needed constructors, getters and setters. Use your judgment for the defaults arguments. Include in your design the following member functions: Operator += that increment the odometer by a certain value. Operator +that add a certain value from the "load weight" Operator-that subtract a certain value from the "load weight". Operator > that read from the keyboard andl set the value of the odometer. A print function that prints the data value of the derived object. .A function that returns the weight supported (wheel loading) by a wheel of a vehicle. . Wheel-loading = weight / number, wheels A function that returns the load efficiency of a truck. . Load-efficiency = load weight/ (load-weight + weight)

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!