For this assignment you will create a simple contact


Assignment

For this assignment you will create a simple contact manager application. This application will track personal information about the user's friends and acquaintances. The user will be able to enter information for new contacts and also lookup information for a contact.

For this assignment you will create a simple class hierarchy. You will create an inheritance relationship between two classes -- a Friend class and a Person class - Friend will inherit Person.

Your Person class will have the following attributes:

first_name

last_name

phone_number

Your Friend class will have the following attributes:

email

birth_date

Both your Person class and your Friend class will have a get_info method.

For the Person class, the get_info method will return a string with the full name and phone number of the person.

For the Friend class, the get_info method will return a string with the full name, phone number, email address, and birth date.

The application will present a main menu to the user that will allow the user to add a contact, lookup a contact by name, or exit the application.

When the user chooses to add a contact, the application will ask the user if they want to add a regular person or a friend. If the user wants to add a new regular person contact then the application will ask for the first name, last, name and phone number for that person. If the user wants to add a new friend contact then the application will ask the user for the first name, last name, phone number, email address, and birth date.

When the user chooses to lookup a contact by name, the application will ask the user for the last name, and then the application will display the full information for all contacts with that last name.

Solution Preview :

Prepared by a verified Expert
Computer Engineering: For this assignment you will create a simple contact
Reference No:- TGS01670151

Now Priced at $35 (50% Discount)

Recommended (99%)

Rated (4.3/5)