Question: A personal phone directory contains room for first names and phone numbers for 30 people. Assign names and phone numbers for the first 10 people.
A personal phone directory contains room for first names and phone numbers for 30 people. Assign names and phone numbers for the first 10 people. Prompt the user for a name, and if the name is found in the list, display the corresponding phone number. If the name is not found in the list, prompt the user for a phone number, and add the new name and phone number to the list. Continue to prompt the user for names until the user enters quit. After the arrays are full (containing 30 names), do not allow the user to add new entries. Save the file as PhoneNumbers.java.
Step by Step Solution
3.41 Rating (160 Votes )
There are 3 Steps involved in it
import javaxswing class PhoneNumbers public static void mainString args String names new String30 na... View full answer
Get step-by-step solutions from verified subject matter experts
