Question: Assignment Goals Answer the following questions. Points applicable for each of the questions are mentioned alongside the question 1. Implement a method for the
Assignment Goals Answer the following questions. Points applicable for each of the questions are mentioned alongside the question 1. Implement a method for the class Telephone Directory of Segment 20.9 of Chapter 20, and as discussed in class, to display all names and telephone numbers in the Dictionary. [30 pts] 2. Describe in a few short sentences how a dictionary differs from the sorted list. [20 pts] 3. In the telephone directory problem of Segment 20.7, the case of the letters in a name affects the name's order in the dictionary. In 2 lines of Java code, show how you would ignore case variations in the input file such that it does not affect this order? [20 pts] 4. Refer to the discussion of implementation of class Telephone Directory-described in Segment 20.9. Implement a method for this class that adds an entry, key(name)/value(phone number), to the directory, given the person's name and telephone number. The method should return true if the entry was added. If the person with the given name is already in the directory, the method should instead not add a new entry but replace the person's telephone number and return false. [30 pts]
Step by Step Solution
There are 3 Steps involved in it
1 To implement a method for the class Telephone Directory to display all names and telephone numbers ... View full answer
Get step-by-step solutions from verified subject matter experts
