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 18:30
Which of the following commands is more recommended while creating a bot?
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
What is the main benefit of minimizing the ribbon in word? more options will be accessible through customized keystrokes. more of the document will be viewable without needing to scroll. fewer controls will be accessible to the user by using the mouse. fewer editing options will be available without entering a password.
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Into what form does the barcode reader convert individual bar patterns?
Answers: 1
question
Computers and Technology, 24.06.2019 17:30
Which computer network component connects two different networks together and allows them to communicate? a is a node (or a device) that connects two different networks together and allows them to communicate.
Answers: 2
You know the right answer?
A contact list is a place where you can store a specific contact with other associated information s...
Questions
Questions on the website: 13722362