i am trying to create a list of phone numbers and names that has the following input:
what i need is for a person to enter data in that format and terminate input by pressing '.' on a newline. after that a program should ask a user to enter a name and in return display a number.
i have created such program but i am stuck on how to make it display number for a given name. currently when user inputs a name it returns a name. How do i make it return a number?