ScholarMatic | 24/7 Homework Help

ScholarMatic Will Help You Write Your Essays and Term Papers

Answered » You can buy a ready-made answer or pick a professional tutor to order an original one.

python program. read description, programming homework help

by | Nov 28, 2023 | programming

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: 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!

ScholarMatic: Explanation & Answer

Your ready answer from a verified tutor is just a click away for as little as $14.99


  

Click Order Now to get 100% Original Answer Customized to your instructions!

HOME TO CERTIFIED WRITERS

Why Place An Order With Us?

  • Certified Editors
  • 24/7 Customer Support
  • Profesional Research
  • Easy to Use System Interface
  • Student Friendly Pricing

Have a similar question?

PLAGIRAISM FREE PAPERS

All papers we provide are well-researched, properly formatted and cited.

TOP QUALITY

All papers we provide are well-researched, properly formatted and cited.

HIGHLY SECURED

All papers we provide are well-researched, properly formatted and cited.

ScholarMatic: Get Started

Assignment Writing Service

Feel safe and secure when placing an order on our portal!
Fruitful cooperation begins with solid guarantees, and we are professional enough to promise perfect results. Let’s get it started!