Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercise 8 : Parallel Arrays For this problem you are going to create a function called FindHighest that will accept two parameters: names and calls.
Exercise : Parallel Arrays For this problem you are going to create a function called FindHighest that will accept two parameters: names and calls. The names list will contain the names of individuals that work on a help desk. The calls list will contain the number of calls they received in one day. Your function will return back the name of the person who received the highest number of calls along with the number of calls they received. In a prior problem, you wrote code that returned the index of where the lowest value in that list was found. This problem is very similar to that problem with the exception of now you are finding the highest value in a list. Additionally rather than returning the index value of where you found that value, you will be returning the name of the person corresponding to that value. Remember that when working with Parallel Arrays or Lists, the lists are synced with a common index. Therefore if you found the lowest value at index that would correspond to index in the other list.
Exercise : Parallel Arrays
For this problem you are going to create a function called FindHighest that will accept two parameters: names and calls. The names list will contain the names of individuals that work on a help desk. The calls list will contain the number of calls they received in one day. Your function will return back the name of the person who received the highest number of calls along with the number of calls they received.
In a prior problem, you wrote code that returned the index of where the lowest value in that list was found. This problem is very similar to that problem with the exception of now you are finding the highest value in a list. Additionally rather than returning the index value of where you found that value, you will be returning the name of the person corresponding to that value. Remember that when working with Parallel Arrays or Lists, the lists are synced with a common index. Therefore if you found the lowest value at index that would correspond to index in the other list.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started