subject
Computers and Technology, 08.06.2021 22:30 catwomn

I need to figure out the logic for this assignment. I do so many a day so I'll probably get it eventually however these examples really help me understand! Here are the instructions:
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.

And here is the code we start with!

import java. util.*;
class PhoneNumbers {
public static void main(String[] args) {
// Write your code here
}
}

I got partial credit however I want to know where I went wrong. Thanks so much for all of your help! All good and God Bless.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:40
Sarah is having a hard time finding a template for her advertising business that she may be able to use at a later date and also make it available to her colleagues
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
When is it appropriate to use an absolute reference
Answers: 1
question
Computers and Technology, 23.06.2019 07:50
Apython programming question: assume s is a string of lower case characters. write a program that prints the number of times the string 'bob' occurs in s. for example, if s = 'azcbobobegghakl', then your program should print number of times bob occurs is: 2
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Spoons are designed to be used for: spring hammering. applying body filler. identifying high and low spots. sanding highly formed areas.
Answers: 3
You know the right answer?
I need to figure out the logic for this assignment. I do so many a day so I'll probably get it event...
Questions
question
Geography, 30.06.2019 15:20
question
Mathematics, 30.06.2019 15:20
question
History, 30.06.2019 15:20
Questions on the website: 13722361