Question: For this assignment, you will be building a vehicle fleet management system using object-oriented programming techniques. Each problem will have you adding functionality to the

For this assignment, you will be building a vehicle fleet management system using object-oriented

programming techniques. Each problem will have you adding functionality to the fleet management system.

1. Create a Car class. A car should have a make (string), a model (string), and a VIN number (long). Create

a Boat class. A boat should have a name (string), and a cargo size (double). Create an Airplane class. An

airplane should have a manufacturer (string) and a serial number (long). Each class should also define a

void Status() function which prints out information about that object. Use the following main function

and make sure the output matches the expected output indicated by the comments.

int main()

{

Car car{ "Tesla", "S", 12345L };

Boat boat{ "Mayflower", 7.5 };

Airplane plane{ "Boeing", 98765L };

// (should print) Car: Make - Tesla, Model - S, VIN - 12345

car.Status();

// (should print) Boat: Name - Mayflower, Cargo - 7.5

boat.Status();

// (should print) Airplane: Manufacturer - Boeing, Serial - 98765

plane.Status();

}

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!