Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

python program. read description, programming homework help

Create a program that models the functionalities of a cell phone:

  1. Makes/receives calls:
  • Makes/receives calls using a functions called make_call(number) and receive_call(number).  These functions should return the date and time at which the call was made (i.e. the function was called)
Access a phone book:
  • See a contact using a function view_contact(name)
  • See all contacts using a function view_all()
  • Add a contact using a function add_contact(name, number, email)
  • Edit a contact using a function edit_contact(name, option, new_info)
  • Call a contact using a function call_contact(name)
Access the history of calls made/received using a print_history() functionTESTERS:--------------------------- Main Menu --------------------------1. Make a call2. Receive a call3. Phone book4. Call History5. Quit>> 1What number do you wish to dial? (M to return to main menu)>> 5555555555Dialing 5555555555...Call ended.--------------------------- Main Menu --------------------------1. Make a call2. Receive a call3. Phone book4. Call History5. Quit>> 3--------------------------- Phone Book Menu --------------------------1. Add a contact2. Edit a contact3. Display a contact4. Display all contacts5. Call contact6. Main Menu>> 1Enter the name: KathyEnter the number: 562)555-5555Enter the email: [email protected] following contact has been stored:Name: KathyNumber: 562)555-5555Email: [email protected] you wish to add more? Y/N>> YEnter the name: TimEnter the number: 323)555-5555Enter the email: [email protected] following contact has been stored:Name: TimNumber: 323)555-5555Email: [email protected] you wish to add more? Y/N>> N--------------------------- Phone Book Menu --------------------------1. Add a contact2. Edit a contact3. Display a contact4. Display all contacts5. Call contact6. Main Menu>> 3What is the name of the contact you wish to display? (P - phonebook menu or M - main menu)>> KatheryneKatheryne does not exist in the phonebook. Would you like to try again? (Y - Yes, P - phonebook menu, or M - main menu)>> YWhat is the name of the contact you wish to display? (P - phonebook menu or M - main menu)>> Katherine Katherine does not exist in the phonebook. Would you like to try again? (Y - Yes, P - phonebook menu, or M - main menu)>> P--------------------------- Phone Book Menu --------------------------1. Add a contact2. Edit a contact3. Display a contact4. Display all contacts5. Call contact6. Main Menu>> 4Displaying all contacts...-------------------------- * CONTACTS * --------------------------Name: KathyNumber: 562)555-5555Email: katherine.varela@csulb.edu-----------------------------------Name: TimNumber: 323)555-5555Email: tim@csulb.edu-------------------------------------------------------------- Phone Book Menu --------------------------1. Add a contact2. Edit a contact3. Display a contact4. Display all contacts5. Call contact6. Main Menu>> 2Enter the name of the contact you wish to edit: KathyWhat would you like to edit? (1 - name, 2 - number, or 3 - email)>> 1Enter the new name: KatherineThe contact has successfully updated...Name: KatherineNumber: 562)555-5555Email: [email protected] Phone Book Menu --------------------------1. Add a contact2. Edit a contact3. Display a contact4. Display all contacts5. Call contact6. Main Menu>> 3What is the name of the contact you wish to display? (P - phonebook menu or M - main menu)>> KatherineName: KathyNumber: 562)555-5555Email: [email protected] Phone Book Menu --------------------------1. Add a contact2. Edit a contact3. Display a contact4. Display all contacts5. Call contact6. Main Menu>> 5Who do you wish to call? >> TomTom does not exist in the phonebook. Would you like to try again? (Y - Yes, P - phonebook menu, or M - main menu)>> YWho do you wish to call? TimCalling Tim...Call ended.--------------------------- Phone Book Menu --------------------------1. Add a contact2. Edit a contact3. Display a contact4. Display all contacts5. Call contact6. Main Menu>> 6--------------------------- Main Menu --------------------------1. Make a call2. Receive a call3. Phone book4. Call History5. Quit>> 2Receiving call from 5678902346...Call ended.--------------------------- Main Menu --------------------------1. Make a call2. Receive a call3. Phone book4. Call History5. Quit>> 2Receiving call from 4567891230...Call ended.--------------------------- Main Menu --------------------------1. Make a call2. Receive a call3. Phone book4. Call History5. Quit>> 4Displaying call history...-------------------------- * CALL HISTORY * --------------------------Incoming: 456)789-123006/19/2016 11:30 AM-----------------------------------Incoming: 567)890-234606/19/2016 11:29 AM-----------------------------------Outgoing: Tim06/19/2016 11:27 AM-----------------------------------Outgoing: 555)555-555506/19/2016 11:20 AM--------------------------- Main Menu --------------------------1. Make a call2. Receive a call3. Phone book4. Call History5. Quit>> 5Goodbye!
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question