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 01:00
What is added to the < meta > tag to describe the encoding type?
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
During physical science class ben and jerry connected three identical lightbulbs in parallel to a battery where happens when ben removes one of the lightbulbs from it’s socket
Answers: 2
question
Computers and Technology, 24.06.2019 06:30
Me and category do i put them in because this is science
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
In three to five sentences, describe how you can organize written information logically and sequentially
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
Mathematics, 17.02.2021 01:00
question
Geography, 17.02.2021 01:00
question
Chemistry, 17.02.2021 01:00
question
Arts, 17.02.2021 01:00
question
Business, 17.02.2021 01:00
question
Chemistry, 17.02.2021 01:00
Questions on the website: 13722362