Create an inheritance relationship between two classes

Assignment Help Python Programming
Reference no: EM13806250

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.

Reference no: EM13806250

Questions Cloud

Create a utility procedure : Sum of Digits in a String. It is necessary to create a utility procedure that allows you to convert from a character to an integer value to allow you to sum the values of the digits in a string
Understanding of leadership : Write a 3 page review from the textbook The Leadership Experience (2010). Be honest as to their contribution to your understanding of leadership.
Write essay about apartments from my interview with people : Write an essay about apartments from my interview with people notes.
Pearson correlation and regression analysis issues : Based on your correlation coefficient, how good (valid) is your prediction, poor, okay, good, very good?
Create an inheritance relationship between two classes : 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
Write a research paper about fast food and its effects : Write a research paper about Fast food and its effects.
Single time estimate cpm analysis issues : A listing of Intermediate Predecessor activities is important information in a Single Time Estimate CPM analysis for which of the following reasons?
Evaluating a supply chain : In this assignment, you will develop an understanding of the supply chain. You will provide your assessment of a supply chain in the form of an evaluation. This assignment is the second of the two LASA assignments you will complete in this course.
Write a review paper about the movie cyberbully : Write a review paper about the movie "Cyberbully".

Reviews

Write a Review

Python Programming Questions & Answers

  1 why is biodiversity importantnbsp discuss the ways in

1 why is biodiversity important?nbsp discuss the ways in which the value may be assigned to biodiversity. based on your

  The integers should be printed in order with addresses

The integers should be printed in order with addresses from main. When the steps of the function order have been completed the smallest value will be stored in a, the middle in b, and the largest in c.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Let ll be a list of integers

Let LL be a list of integers. Use list comprehension to produce teh following lists. Each one should just take onel line. Anser questions as two comments.

  Assignment on python code

A robot is asked to navigate a maze. It is placed at a certain position (the starting position) in the maze and is asked to try to reach another position (the goal position)

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Same directory as your program

In the same directory as your program, create a file FF1, and write into it Hello (with a space at teh end). Similarly, create a file FF2, and write into it world! (with a new line, i.e., an ENTER at the end). And create a file DD and write into i..

  Cleint software so that it does not display

Rewrite the cleint software so that it does not display an echo of a message sent by the users. Maybe it means that each time a user tries to send a private message that same message is also sent back to them? summary: stop that from happening?

  Specializes in solving the equations ax=b by doolittle''s dec

Write a  program that specializes in solving the equations Ax=b by Doolittle's decomposition method, where a is the HIbber matrix of arbitrary size nxn

  Python programming to solve this problem

Write a statement that adds 1 to deansList and prints studentName to standard out if gpa exceeds 3.5.

  Data file is a comma separated

The data file is a comma separated text values stored in a file with '.CSV' extension. The file has five columns corresponding to employee data fields listed above.

  Python journeyman

What are the steps YOU would recommend to a Python journeyman, from apprenticeship to guru status?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd