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 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
Which tab is used to change the theme of a photo album slide show? a. design b. view c. transitions d. home
Answers: 1
question
Computers and Technology, 23.06.2019 07:50
Apython programming question: assume s is a string of lower case characters. write a program that prints the number of times the string 'bob' occurs in s. for example, if s = 'azcbobobegghakl', then your program should print number of times bob occurs is: 2
Answers: 3
question
Computers and Technology, 23.06.2019 17:00
What does the faves button do? a. users mark a web page as a favorite b. leads other readers to favor a specific page c. readers sort and align their favicons, or favorite icons d. leads users to a message board where they can post questions
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
Chemistry, 22.08.2019 15:10
Questions on the website: 13722362