Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started