Homework Assignment

User-Defined Functions

Contents:


Overview

Topic: User-Defined Functions
Related Reading: Ch. 6
Due:

Please make sure you adhere to the policies on academic integrity.


Practice Problems

Please note that the answer to "self-check" questions from the text are available via the author's website.


Problems to be Submitted (20 points)

  1. (5 points)

    Exercise 6.13 of the text (p. 345)
    Please make sure your solution is both syntactically and semantically correct.

  2. (5 points)

    Exercise 6.23 of the text (p. 347)
    Please note that you must explicitly explain why the output is as it appears! You will not receive full credit if you only give the output.

  3. (5 points)

    Exercise 6.45 of the text (p. 351)
    Please make sure your solution is both syntactically and semantically correct, including the signature of your function.

  4. (5 points)

    Exercise 6.56 of the text (p. 352-353)


Extra Credit

  1. (2 points)

    Exercise 4.60 of the text (p. 230)


Last modified: Monday, 14 March 2005