Write a program that prompts the user to specify


Implement a class Person with two fields name and age, and a class Car with three fields:

•The model
•A 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.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a program that prompts the user to specify
Reference No:- TGS089121

Expected delivery within 24 Hours