Quality Papers

Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

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 and a vector. 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"stdafx.h" #include<iostream>#include<string>#include<vector>usingnamespace std;class…

Can't find what you are looking for?

Post your question on solvingessays and get help from one of our expert tutors in topics ranging from mathematics to rocket science!