Answered You can hire a professional tutor to get the answer.

QUESTION

In C++ (must be able to compile in Visual Studio 2010): Implement a class Person with two fields name and age, and a class Car with three fields:

In C++ (must be able to compile in Visual Studio 2010): Implement a class Person with two fields name and age, and a class Car with three fields:The modelA pointer to the owner (a Person*)A pointer to the driver (also a Person*)Write a program that prompts the user to specify people and cars. Store them in a vector<Person*> and a vector<Car*>. Traverse the vector of Person objects and increment their ages by one year. Traverse the vector of cars and print out the car model, owner’s name and age, and driver’s name and age.

// person.cpp : Defines the entry point for the console application.//#include&quot;stdafx.h&quot; #include&lt;iostream&gt;#include&lt;string&gt;#include&lt;vector&gt;usingnamespace std;class...
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question