Question: === function 1 === A function called printAverage that takes the following parameters: 1. An array of integers 2. An integer indicating the size of

 === function 1 === A function called printAverage that takes the

=== function 1 === A function called printAverage that takes the following parameters: 1. An array of integers 2. An integer indicating the size of the array And then prints the average of these integers to the screen. =============== === function 2 === A function called returnAverage that takes the same parameters as the previous function, and returns the average of the integers to the function that called it. Note: the type of the return value should be something that can store a decimal value. =========EEEEEE === function 3 === Write a function called returnLongest that takes the following parameters: 1. An array of strings 2. An int indicating the size of the array Your function should return the longest string in the array. If two or more strings are the same length, return the one that appears earliest in the array. You should write a main function that tests your printAverage, returnAverage, and returnLongest functions in order to verify for yourself that they work, but when I grade it I will test them with a main function I've written myself

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!