question archive Create a program that models the functionalities of a cell phone: 1)Makes/receives calls: 2)Makes/receives calls using a functions called make_call(number) and receive_call(number)

Create a program that models the functionalities of a cell phone: 1)Makes/receives calls: 2)Makes/receives calls using a functions called make_call(number) and receive_call(number)

Subject:ReligionPrice: Bought3

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

1)Makes/receives calls:

2)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: katherine.varela@csulb.eduThe following contact has been stored:Name: KathyNumber: 562)555-5555Email: katherine.varela@csulb.eduDo you wish to add more? Y/N>> YEnter the name: TimEnter the number: 323)555-5555Enter the email: tim@csulb.eduThe following contact has been stored:Name: TimNumber: 323)555-5555Email: tim@csulb.eduDo 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: katherine.varela@csulb.edu--------------------------- 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: katherine.varela@csulb.edu--------------------------- 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! 

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE