subject
Computers and Technology, 10.11.2019 02:31 mccdp55

Write an address book program that stores your contacts' names and theiremail addresses. the names and email addresses are originally stored in a file calledphonebook. in, in the format: harry pottertheboywholived@hogwarts. eduhermione grangerbrightestwitch@hogwarts. eduron weasleyroonilwazlib@hogwarts. edudraco @hogwarts. eduseverus snapehalfbloodprince@hogwarts. edualbus dumbledorealasearwax@hogwarts. eduyour program should read from the file, storing the names and correspondingemail addresses in a dictionary as key-value pairs. then, the programshould display a menu that lets the user enter the numbers 1 through5, each corresponding to a different menu item: 1) look up an email address2) add a new name and email address3) change an email address4) delete a name and email address5) save address book and exitwhen the user enters 1, the program should prompt them for a name, and thenprint the corresponding email address. if there is no dictionary entry underthat name, the program should print, "sorry, no contact exists under that name."when the user enters 2, the program should prompt them for a name and an emailaddress, then add a new key-value pair to the dictionary. when the user enters 3, the program should prompt them for a name and a newemail address for that contact. it should change the value of thecorresponding dictionary entry to match the new email address. when the user enters 4, the program should prompt them for a name and deletethe corresponding dictionary entry. when the user enters 5, the program should write the names and email addressesin alphabetical order by first name to the file phonebook. out.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
Jackson is teaching the decimal number system. he wants his students to know how to expand numbers by powers of 10. which is the correct order in which digits are assigned values in the decimal number system?
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
Martha is a healer, a healthcare provider, and an experienced nurse. she wants to share her daily experiences, as well as her 12 years of work knowledge, with people who may be interested in health and healing. which mode of internet communication can martha use?
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
From excel to powerpoint, you can copy and paste a. cell ranges and charts, one at a time. b. cell ranges and charts, simultaneously. c. charts only. d. cell ranges only.
Answers: 3
question
Computers and Technology, 23.06.2019 15:30
Brian wants to conduct an online search with a certain phrase. he intends to use the words books that belong to the 1800s in his search. how should he use the word that in his search?
Answers: 1
You know the right answer?
Write an address book program that stores your contacts' names and theiremail addresses. the names a...
Questions
question
Mathematics, 19.12.2019 22:31
question
Mathematics, 19.12.2019 22:31