Computers and Technology
Computers and Technology, 01.03.2021 04:10, RyleyM

8.11 LAB: Contact list (C++) 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). That list is followed by a name, and your program should output the phone number associated with that name.

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 function. The return value of GetPhoneNumber is the phone number associated with the specific contact name.

string GetPhoneNumber(vector nameVec, vector phoneNumberVec, string contactName)

Hint: Use two vectors: One for the string names, and the other for the string phone numbers.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 18:00, MagicDragon4734
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
Answers: 1
image
Computers and Technology, 24.06.2019 17:40, michaelandtammytrice
Create a file called favorite_foods, and list your favorite foods, entering five or six or more. press enter after each favorite food so it appears on its own line (make certain you also press enter after the final food item). after the file is created, add two more foods you like that are not on the list (press enter after the final food item). view the list of foods to make certain the two items you added appear at the end of the list
Answers: 2
image
Computers and Technology, 25.06.2019 06:30, yushan2751
During which stage do you think is the best time for a company to purchase an emerging technology
Answers: 1
image
Computers and Technology, 25.06.2019 20:00, kiki4832
Create a formula that looks up the rounded sum of the values in column b to one decimal place in the table from d1: f50 and returns the information from the third column. this value would not need to exactly match a value in column d.
Answers: 2
Do you know the correct answer?
8.11 LAB: Contact list (C++) A contact list is a place where you can store a specific contact with...

Questions in other subjects: