Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A personal phone directory contains room for the first names and phone numbers f

ID: 3562998 • Letter: A

Question

A personal phone directory contains room for the 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 PhoneNumber.java.

Explanation / Answer

/A personal phone directory contains room for first names and phone numbers for 30 people. 04 //Assign names and phone numbers for the first 10 people. 05 //Prompt the user for a name, and if the name is found in the list, 06 //display the corresponding phone number. If the name is not found in the list, 07 // prompt the user for a phone number, and add the new name and phone number to the list. 08 //Continue to prompt the user for names until the user enters

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote