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, 23.06.2019 03:30
How can you repin an image on your pinterest pin board a. click on the "repin" button b. click on the "add pin" button c. click on the "upload a pin" button d. click on the "save pin" button.
Answers: 2
question
Computers and Technology, 24.06.2019 05:30
Someone plzz me which of these defines a social search? a. asking a search engine a question that is answered by a real person on the other sideb. modifying search results based on popularity of a web pagec.modifying search results based on a ranking of a web page
Answers: 2
question
Computers and Technology, 24.06.2019 10:00
(, urgent need): how do i change my username
Answers: 1
question
Computers and Technology, 24.06.2019 14:00
In simple terms, how would you define a protocol?
Answers: 2
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
Mathematics, 12.08.2019 23:30
question
Mathematics, 12.08.2019 23:30
question
Mathematics, 12.08.2019 23:30
Questions on the website: 13722367