Computers and Technology
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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:50, najashohatee1234
Can online classes such as gradpoint track your ip location like if im taking a final and i give somebody else my account and they take the final for me will it show where they are taking the final from? and can this be countered with a vpn
Answers: 1
image
Computers and Technology, 22.06.2019 10:00, michael3592
When is an original work considered public domain? a. when posted via social media b. when it is posted on the internet c. when a copyright symbol is not included with the piece of work d. when explicit permission is given by the author / owner
Answers: 1
image
Computers and Technology, 24.06.2019 13:30, lorelaistudent
Does anybody know how to hack into a google account? i had important information on it and it is gone now and i need getting it back.
Answers: 1
image
Computers and Technology, 24.06.2019 18:20, 12375819
Use a while-end loop in a script file to calculate the sum of the first n terms of the series: summation sign on the top n bottom k=1 : )^k * k^2 +5k)/3^k show the script file and the two results of n = 10 and n = 20.
Answers: 2
Do you know the correct 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 in other subjects:

Konu
Mathematics, 17.12.2020 05:20
Konu
Mathematics, 17.12.2020 05:20
Konu
Mathematics, 17.12.2020 05:20