Artem H.

asked • 04/25/21

Modify the above program so that it reads from the file FriendsPhones.txt, download the friends name into the friends array and corresponding phone number into an array called phoneNumbers.  Upd

Modify the above program so that it reads from the file FriendsPhones.txt,  download the friends name into the friends array and corresponding phone number into an array called phoneNumbers. 

Update the fillArray method to fill both arrays, update the findAFriend method to input the friends name and returns the phone number of the friend if the friend is found. Note both methods will input both the arrays as parameters.

So your output will look like this:

O3.PNG  

 

O1-1.PNG  




1 Expert Answer

By:

Patrick B. answered • 04/25/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.