Chapter 6: Problem 4
Give the function header for each of the following functions: a) Function hypotenuse that takes two double-precision, floating-point arguments, side1 and side2, and returns a double-precision, floating-point result. b) Function smallest that takes three integers, x, y and z, and returns an integer. c) Function instructions that does not receive any arguments and does not return a value. [Note: Such functions are commonly used to display instructions to a user.] d) Function intToDouble that takes an integer argument, number, and returns a double- precision, floating-point result.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.