Question: THIS QUESTION HAS TWO PARTS: A) Write an application that allows a user to enter the names and phone numbers of up to 20 friends.

THIS QUESTION HAS TWO PARTS:

A)

Write an application that allows a user to enter the names and phone numbers of up to 20 friends.

Continue to prompt the user for names and phone numbers until the user enters zzz or has entered 20 names, whichever comes first.

When the user is finished entering names, produce a count of how many names were entered, but make certain not to count the application-ending dummy zzz entry.

Then display the names.

Ask the user to type one of the names and display the corresponding phone number.

Save the application as PhoneBook.java

B)

Create the PhoneBookTest.java class that contains the main method and has an object to use the PhoneBook.java class

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 Databases Questions!