Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, I'd like some help with this Python program. I feel like I'm making it more complicated than what it has to be and would

Hello, I'd like some help with this Python program. I feel like I'm making it more complicated than what it has to be and would like some verification. Thank you!

Program:

We're going to write a program that manages the email address of our contacts. Your program must contain a class named contact that has 3 attributes (instance variables): last name, first name, and email. Your class should also have a method to return the full name and email address for printing when requested. You may add other methods to the class if you like. Each contact should use a single instance of your contact class. You should use either a list or a dictionary to act as a container of the contact instances. Also, the program should have a menu that allows the user to interact with your collection of contacts: displaying contacts or adding new contacts as long as the user wishes, then saying goodbye when finished. The menu should offer these options.

Program Options.

1.) Display all contacts

2.) Create new contact

3.) Exit

option = input("Enter 1, 2, or 3: ")

For full credit:

- use a python class to represent the contact info and at least one method to print that info.

- collect each new contact instance in a list or dictionary.

- please format printed output so all column data lines up.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

Create a decision tree for Problem 12.

Answered: 1 week ago

Question

c. Acafeteriawhere healthy, nutritionally balanced foods are served

Answered: 1 week ago