subject

A contact list is a place where you can store a specific contact with other associated information such as a phone number, email address, birthday, etc. Write a program that first takes as input an integer N that represents the number of word pairs in the list to follow. Word pairs consist of a name and a phone number (both strings), separated by a comma. That list is followed by a name, and your program should output the phone number associated with that name. Assume that the list will always contain less than 20 word pairs. Ex: If the input is:
3 Joe 123-5432 Linda 983-4123
Frank 867-5309
Frank
the output is: 867-5309
Your program must define and call the following method. The return value of GetPhoneNumber is the phone number associated with the specific contact name.
public static String GetPhoneNumber (Stringi namevec, Stringtl phoneNumbervec, String contactName, int arraySize)
Hint Use two arrays: One for the string names, and the other for the string phone numbers.
LabProgram. java
1 import java. util1.scanner;
2
3 public class LabProgram
4
5
6
7 public static void main(strirgt] args)
8
9 }

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:40
If you arrive at the same time as another user straight across from you yield if a. they flash your headlights at you b. you can’t see their turn signals c. you’re going street and they’re running d. you’re turning they’re going straight plz
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the can apple do to fix this issue?
Answers: 1
question
Computers and Technology, 23.06.2019 20:40
Instruction active describing list features which statements accurately describe the features of word that are used to create lists? check all that apply. the tab key can be used to create a sublist. the enter key can be used to add an item to a list. the numbering feature allows for the use of letters in a list. the numbering feature can change the numbers to bullets in a list. the multilevel list feature provides options for different levels in a list.
Answers: 2
question
Computers and Technology, 24.06.2019 22:30
What are the 4 basic items that are traded throughout the world?
Answers: 1
You know the right answer?
A contact list is a place where you can store a specific contact with other associated information s...
Questions
question
Mathematics, 05.05.2020 20:26
question
Computers and Technology, 05.05.2020 20:26
question
Mathematics, 05.05.2020 20:26
Questions on the website: 13722362