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, 21.06.2019 23:00
Describe in pseudocode an algorithm that given an integer n and a linked list of elements increases the linked list by a factor of n by replacing each element in the original list with n copies of that element. for example, if l: [18, 7, 4, 24, 11] and n = 3 the resulting list should be l: [18, 18, 18, 7, 7, 7, 4, 4, 4, 24, 24, 24, 11, 11, 11]. if the value of n is less than or equal to 0, the list should be empty after the call. what’s the running time of your algorithm?
Answers: 3
question
Computers and Technology, 23.06.2019 04:31
Cloud computing service providers manage different computing resources based on the services they offer. which resources do iaas and paas providers not manage? iaas providers do not manage the for the client, whereas paas providers usually do not manage the for their clients. iaas- storage server operating system network paas- applications interafce storage vertualiation
Answers: 2
question
Computers and Technology, 23.06.2019 07:30
What are ways to switch windows in excel? check all that apply. on the status bar, click the windows button, and then click the file name. on the task bar, click to display the excel jump list, and then click the file name. on the view tab, in the window group, click switch windows, and then click the file name. on the review tab, in the viewing group, click files, and then click the file name.
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
What is estimated time of arrival (eta)? a device that measures the acceleration (the rate of change of velocity) of an item and is used to track truck speeds or taxi cab speeds a gps technology adventure game that posts the longitude and latitude location for an item on the internet for users to find a north/south measurement of position the time of day of an expected arrival at a certain destination and is typically used for navigation applications
Answers: 3
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, 08.09.2021 23:30
question
English, 08.09.2021 23:30
question
Mathematics, 08.09.2021 23:30
question
Business, 08.09.2021 23:30
question
Mathematics, 08.09.2021 23:30
Questions on the website: 13722367