Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Write a program that makes and modies a phonebook A. Create Version 1: 1. We assume that each person is associated with exactly one

image text in transcribedimage text in transcribedimage text in transcribed
3. Write a program that makes and modies a phonebook A. Create Version 1: 1. We assume that each person is associated with exactly one phone number 2. Your program should read in a .tsv le in which each line consists of: a person's name, a tab, and a phone number. I A sample le is provided as inrm 3. Your program should store this information as a dictionary such that the person's name is the key and the telephone number is the value. 4. Your program should give a user the option of adding additional names and phone numbers to the dictionary 5. Your program should collect the keys of the dictionary into a list and put them in alphabetical order 6. Then your program should write the entries into a new .tsv le, in alphabetical order. a. For example, dene a function: update_phonebookl (inle,outle) b. Run that function with mp1; phone book.tsv as inle and simple_phone_book_output.tsv as outle. c. After adding a few items, this version of mp1; phone book output.tsv is a possible output le assuming that a few telephone numbers were added (of course the version that you create may be a little different because you may be adding different phone numbers). \f\f

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions