Lab 8 - Passing Arrays to Functions

NOTE: This lab will occur on Wednesday, November 4th. Tuesday, November 3rd will be a lecture on these concepts.

In this lab, we will convert Question 2 from Homework 4 to use functions instead of doing everything in main(). If you did not complete Homework 4, refer to the official solutions. Three functions will be defined as follows: Your main() function will declare the array (do not have a global array) and the size variables. In main(), create a do-while driver loop that will call get_input(). Then call calc_average() and print out the average that it returns. Likewise, call calc_stdev() and print out the standard deviation. Then prompt the user "Do you wish to enter another set of data (yes|no)? ". Use the technique from Lab 7 to read their response as a C-style string. Continue while the user responds "yes" or "Yes".

Email your assignment to Dr. Melissa Danforth on Sleipnir, as you have for the other lab assignments. Do NOT email them to Dr. Marc Thomas.