Question: 1- Create a header file for a class Person that includes the following private members: name, age, place of birth, password, and friends. Now create

 1- Create a header file for a class Person that includes

1- Create a header file for a class Person that includes the following private members: name, age, place of birth, password, and friends. Now create the implementation of the class. The major requirement is that the implementation must be in a separate.cpp file. Now create the main file. All users and their information must be stored in a .txt file. 2- You will ask the users the following option Please select a number for the option of: 1- Login 2- Register Option: If the user chooses 1, you need to check the name and password of the user and only when you found a matching entry in the .txt file you should consider the user authenticated. After that you must create an object of type Person with all the information from the user contained in that file. You then have to print all the private members of that class. For the list of friends, you must print all the information of friends that you have in the .txt if the user's friends are registered to your system. For example, an output after the user authenticate could be Welcome Susie Marley! Your age is 45 You were born in the UK. You have 3 friends and they are - Samuel Jackson (55) born in the US. - Leslie Winkle (33) bom in Australia. - Cristiano Ronaldo NOT REGISTERED. Note that the last user is not found in the txt file, and the user must know about it. 3- For the option 2 you are required to ask the user for their details and create a new entry to the .txt file. You must ask also for how many friends the user has and what are these friends. You then must create an object of the type Person and display back to the user the information he has just entered BUT using the same output as defined for option 1. That includes the list of friends and their information if they are found in the file

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!