Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

8th Edition

013460153X, 978-0134601533

More Books

Students also viewed these Databases questions

Question

How satisfied are you with this attitude?

Answered: 1 week ago