Question: USING C++ : JUST SOLVE PROBLEM (B) ..Based on problem (A): ---------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------- USING C++: SOLVE PROBLEM (B).. this problem is based on problem A.

USING C++ : JUST SOLVE PROBLEM (B) ..Based on problem (A):

 USING C++ : JUST SOLVE PROBLEM (B) ..Based on problem (A):---------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------- USING C++: SOLVE PROBLEM (B).. this problem is based onproblem A. Problem A: People and vehicles (20 points) For this partyou will be keeping information on people and what cars they aredriving. Your program should have the following options: p create a newperson in the database (you may assume this person's name is only

----------------------------------------------------------------------------------------------------------------------------------------------------------------

one word) c create a new car in the database (you mayassume the car's name will be only one word) f find andselect a person in the database (if there is no such person,show "no one") unregistered to any current cars) You may assume therewill be no more than 100 cars in the database and nomore than 100 people. If you try and find (and select) aperson that doesn't exist, show "no one" for both the person andcar. If a person is not registered to a car, show "noone" for the car. You may assume all people have different names----------------------------------------------------------------------------------------------------------------------------------------------------------------

USING C++: SOLVE PROBLEM (B).. this problem is based on problem A.

Problem A: People and vehicles (20 points) For this part you will be keeping information on people and what cars they are driving. Your program should have the following options: p create a new person in the database (you may assume this person's name is only one word) c create a new car in the database (you may assume the car's name will be only one word) f find and select a person in the database (if there is no such person, show "no one") unregistered to any current cars) You may assume there will be no more than 100 cars in the database and no more than 100 people. If you try and find (and select) a person that doesn't exist, show "no one" for both the person and car. If a person is not registered to a car, show "no one" for the car. You may assume all people have different names and all cars have different names. However, a car and person might have the same name (see example 2) Each person can only be registered to a single car, but a car can have multiple people registered to it simultaneously (see example 30 Hint 1: use classes (and don't dump everything in a single function) Hint 2: use pointers (really!) or you might regret it when part B comes around Example 1 (user input underlined): Currently looking at Person No one In car No one Do you want to (p) make a new person, (c) make a new car, (f) find a person, (r) register a person to a car or (q) quit What is this person name? insh Currently looking at: Person No one In car No one Do you want to (p) make a new person (c) make a new car, (f) find a person, (r) register a person to a car or (q) quit What is this car s name? putput Currently looking at: Person No one In Car No one Do you want to (p) make a new person, (c) make a new car (f) find a person, (r) register a person to a car or (q) quit Which person do you want to find? inshua

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!