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

  Write a program that uses a bar

Write a program that uses a bar chart to display the percent-ages of the overall grade represented by the project, quizzes the midterm exam and the final exam

  You are tasked with improving the code for the haunted

you are tasked with improving the code for the haunted house game. please read the associated hand-out and the code

  Implements authentication using needham-schroeder protocol

Write a small project which implements authentication using Needham-Schroeder protocol. Alice connects to Bob using a trusted third party.

  Segment that prompts the user for an arithmetic operator

The variables x and y refer to numbers. Write a code segment that prompts the user for an arithmetic operator and prints the value abtained by appying that operator to x and y.

  Create a jes function

Create a JES function named level1() and include the relevant behaviours. Specifically, in this level, you only need to detect just one character from the text and the text is only in a single row.

  Write a program that counts the frequencies of each word

Write a program that counts the frequencies of each word in a text, and output each word with its count and line numbers where it appears. We define a word as a contiguous sequence of non-white-space characters.

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a python program that computes the mean, median, mode

How to write a python program that computes the mean, median, and mode?

  When we sort a list of items, we need a basis

When we sort a list of items, we need a basis on which to compare the items to see whether one is bigger than another. If it's a list of numbers, Python just compares the numeric values; if it's a list of strings, Python compares the strings alpha..

  We would like to implement the lexical order

We would like to implement the lexical order for lists. For simplicity, we only consider lists of numbers, where , >= have their usual meaning.

  Evaluate a user''s expression

Write a function that will evaluate a user's expression. It should call the getExpression function that you previously wrote to get the expression to evaluate from the user. You should evaluate the expression step-by-step.

  Program that allows the user to enter the type of coin

Create a program that allows the user to enter the type of coin to be evaluated and the number of coins. The program should calculate the total weight of the coins and the height of the coins when stacked. Name the program coins.py. Use the table bel..

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