Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON PROGRAMMING A personal phone directory contains room for first names, phone numbers, and birthdate (mmddyyyy). The maximum number of entries for the phone directory

PYTHON PROGRAMMING A personal phone directory contains room for first names, phone numbers, and birthdate (mmddyyyy). The maximum number of entries for the phone directory is 30. The first 10 entries should be read from a file. To add new entry or search the phone directory for existing entry, prompt the user for a name. If the name is already part of the directory, display the corresponding phone number and birthdate. If the name is not found, prompt for the user phone number and birthdate. Add the new entry to the phone directory if the number of entries in the directory has not reached the maximum (30). Once an entry is processed, the program should return to the prompt. The user can enter quit to exit. Once the user enters quit, the program should print the number of users in the directory, the number of users with the same phone number and the number of users with the same birthdate

Note: Create at least four functions. Function to read and store the first 10 entries, function to add new entries to the phone directory, function to search for an existing entry, function to display stats when the user enters quit

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

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions

Question

Recognize the four core purposes service environments fulfill.

Answered: 1 week ago

Question

Know the three main dimensions of the service environment.

Answered: 1 week ago