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.
a) double hypotenuse( double side1, double side2 )
b) int smallest( int x, int y, int z )
c) void instructions()
d) double intToDouble( int number )
You might also like to view...
Which of the following is not a legitimate statement?
a. Set MyVariable= “X” b. Set MyVariable = 98 c. Set MyVariable = Lizzy d. Set MyVariable = 2 * 64 + 83
In Windows, there are two types of user accounts: an administrator account and a standard account.
Answer the following statement true (T) or false (F)
Excel 2010 provides Backstage view to allow you to perform all of the following functions on your Excel workbooks EXCEPT ____.
A. opening B. saving C. indexing D. closing
_____ explains the purpose of every major piece of computer code and also identifies and describes key variables.
A. Agile documentation B. Technical documentation C. Systems documentation D. User documentation