Homework Two

Due May 19 via email @ 11:59pm

Details:

  1. What is a function definition?
  2. What is a function call?
  3. Where, exactly, is it possible to define a function? What about inside of other functions?
  4. Write a function that takes a parameter an intenger called num_vals. Then have this function ask the user to enter num_vals worth of doubles. This function should return the lowest double.
  5. As above, but return the higest double entered.
  6. As above, but return the average double entered.
  7. Please write a function that has two doubles as parameters and returns another double. This function should return the largest of the two doubles.
  8. Please write a function that has three doubles as parameters and returns another double. This function should return the largest of the three doubles. This function should use the function you wrote above.
  9. Please write a function that has four doubles as parameters and returns another double. This function should return the largest of the four doubles. This function should use the functions you wrote above.

This homework is worth 60 points.