Homework Assignment

For loops

Contents:


Overview

Topic: For loops
Related Reading: Ch. 4.1-4.3
Due:

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


Practice Problems

From the text: Practice 4.1, 4.2, 4.3

You do not submit these; feel free to discuss them freely with others.


Problems to be Submitted (20 points)

  1. (5 points)

    Exercise 4.8 on page 151

  2. (5 points)

    Exercise 4.13 on page 152

  3. (5 points)

    Exercise 4.14 on page 152

    Test your program. What value do you get when summing the first 10 terms?

  4. (5 points)

    Exercise 4.15 on page 152

    Test your program. What is the decimal equivalent of '12345' in base 6?


Extra Credit

  1. (2 points)

    Exercise 4.12 on page 152


Last modified: Monday, 01 February 2010