Question: ( 1 point ) Allows the user to enter a set of 1 0 - digit phone numbers for each contact o ( 2 points

(1 point) Allows the user to enter a set of 10-digit phone numbers for each contact o (2 points) The program will keep prompting the user for a contacts first name and last name. o (2 points) If the contact (dictionary key is the tuple (last name, first name)) does not have a phone number in the dictionary, the program will then ask for a 10-digit phone number and store that information in the dictionary. o (3 points) If the contact already has a phone number, that number is displayed and the user will be asked if they want to enter another phone number. If they do, the new phone number is added to the set of phone numbers for that contact. o (2 points) When the user hits the return/enter key in response to the first name prompt, the program prints the dictionary by contact last name, first name with their set of phone numbers. The dictionary is printed in sorted order by last name

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!