subject
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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:40
Least square fit to polynomial write a function leastsquarefit3pol that solves a linear system of equations to find a least squares fit of a third order polynomial to an experimental data set given as two row arrays. the function leastsquarefit3pol must explicitly solve a set of linear equations and cannot use polyfit. there should be no restriction on the size of the problem that can be solved.
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Which software would you use to create a print design? a. illustrator b. audacity c. reaper d. dreamweaver
Answers: 2
question
Computers and Technology, 24.06.2019 10:00
Which two technologies support the building of single-page applications?
Answers: 2
question
Computers and Technology, 24.06.2019 23:30
Does anyone have the problem where you try to watch a video to get your answer but it brings up a thing asking your gender to make ads relevant but it doesn't load? btw i won't be able to see the answer so use the comments .
Answers: 1
You know the right answer?
8.11 LAB: Contact list (C++) A contact list is a place where you can store a specific contact with...
Questions
question
Physics, 11.06.2021 09:30
question
Mathematics, 11.06.2021 09:30
question
Mathematics, 11.06.2021 09:40
question
Social Studies, 11.06.2021 09:40
question
Mathematics, 11.06.2021 09:40
question
Mathematics, 11.06.2021 09:40
question
Physics, 11.06.2021 09:40
question
Mathematics, 11.06.2021 09:40
question
Mathematics, 11.06.2021 09:40