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, 23.06.2019 09:50
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
question
Computers and Technology, 23.06.2019 21:30
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
What is the most important for you to choose before you build a network?
Answers: 1
question
Computers and Technology, 25.06.2019 01:00
Regular maintenance is a key component of automotive lift safety.
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, 30.03.2021 18:30
question
Engineering, 30.03.2021 18:30
question
Geography, 30.03.2021 18:30
question
Mathematics, 30.03.2021 18:30
Questions on the website: 13722365