Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use python 2.7 or 3.5 Background: A Rolodex is a rotating file device used to store business contact information (the name is a portmanteau

Please use python 2.7 or 3.5

Background: A Rolodex is a rotating file device used to store business contact information (the name is a portmanteau of Rolling and Index). The Rolodex holds specially shaped index cards; the user writes the contact information for one person or company on each card. Many users avoid the effort of writing by taping the contact's business card directly to the Rolodex index card. Some companies have produced business cards in the shape of Rolodex cards, as a marketing idea. In this assignment, you will be implementing a similar rolodex application software

Lab Procedure: You are going to have following three different modules to maintain rolodex:

1. A contact module containing Contact class: This class will be in a file with the following name format: Firstname_lastname_Contact.py

This class will have the following methods:

a. __init__(): will initialize a persons name and email address using set_name and get_name methods

b. set_name: Declare name attribute, modify to be private

c. set_emal(): modify email to be private

d. get_name(): returns current value of name attribute

e. get_email():returns current value of email attribute

2. A gui module containing GUI class: This class will be in a file with the following name format: Firstname_lastname_GUI.py

GUI class is responsible for handling all required GUI operations. This class will have following methods:

a. __init__():

b. create_components: Create GUI components and add to frame

c. read_infile(): : Get name and email data from data file, will read data from rolodex.txt file.

d. next_handler(): Event handler for next button

e. exit_handler(): Event handler for exit button

3. A Driver module with the following naming format of the file: Firstname_lastname_main.py

This module is responsible for creating the root window, create gui application and initializw the application.

Here is the rolodex.txt file.

Dave Matthews,555-222-2222 Omar Bradley,555-111-1111 Sly Stone,555-333-3333

image text in transcribed

Sample Output: 1. The program will read contact information from the rolodex.txt file and initialize the objects with name and email address. Once the GUI application starts the name and email address of the first person will appear in the intertace. Suppose there are three ditterent person's name in the rolodex file. Then a sample run can be as follows: 2. Rolodex Name: Dave Matthews Email: 555-222-2222 Next Exit Once the user presses next button the name of the next person will appear Rolodex Name: Omar Bradley Email: 555-111-1111 Next Exit User can exit the program by pressing the exit button. Sample Output: 1. The program will read contact information from the rolodex.txt file and initialize the objects with name and email address. Once the GUI application starts the name and email address of the first person will appear in the intertace. Suppose there are three ditterent person's name in the rolodex file. Then a sample run can be as follows: 2. Rolodex Name: Dave Matthews Email: 555-222-2222 Next Exit Once the user presses next button the name of the next person will appear Rolodex Name: Omar Bradley Email: 555-111-1111 Next Exit User can exit the program by pressing the exit button

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 And Transaction Processing

Authors: Philip M. Lewis, Arthur Bernstein, Michael Kifer

1st Edition

0201708728, 978-0201708721

More Books

Students also viewed these Databases questions