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 05:00
Are special characters that allow you to search for multiple words at the same time.
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Pl i need the answer now ! which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
Write a program that inserts the digits of an integer into an array in originalorderfollowed by reverse order. first, promptthe user to enter a positive integer(> 0). determine the number of digits of the integer. create a dynamically allocated integer arrayof a size twice the number of digits.now insert the digits in original order which will occupy half of the array. then, insert the digits in reverse order.finally, output thedigits in thearray.use at least two functions to organize your program.
Answers: 3
question
Computers and Technology, 23.06.2019 12:40
Curriculum exam to process a resident's payment, you must click on onesite payments home page. from the a. reports b. my settings o c.transactions o d. rent tab
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, 09.04.2020 05:47
question
Computers and Technology, 09.04.2020 05:47
question
Physics, 09.04.2020 05:47