By background, I am a database person. I am trying really hard to wrap my head around C++ for a class I am taking. The following is an assignment that I just received. I don't want the answers but I would like if possible, to start a discussion. My class is online and I feel like I am missing the discussion that is necessary for me to get it! Again, I'm not asking for you to do it for me... I just want to have intelligent discussion. To me it looks like I need a fairly deep array. I keep imagining a table like one of my databases. I keep coming up with lines but they look like something out of a simplified visual basic code.
Create a program that is based on objects.
The main functions should include storing and retrieving information about people.
Create an object of type Person. The data attributes should be private.
Each attribute should have a setter and a getter.
The attributes include: first name, last name, date of birth, email address, phone number.
Create an event-driven program that contains the following options:
Create a record (initializes a new object and add it to the list of contacts in the array)
Add/Modify first name
Add/Modify last name
Add/Modify phone number
Add/Modify email address
Add/Modify date of birth
If the user chooses to add any information or to print the record before the person has been created the
system should notify the user about the fact that a record does not exist yet.
If a person's information is already set you should ask the user if they want to overwrite the old data.
When you print the person's record you should display the information in the following manner:
Judy Miller (01/01/01)
If any information is not available let the user know by printing dashes in place of the missing data.
The data is stored in the file “contacts.txt”. Comment each relevant part of code stating its purpose.