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.3, 4.18-4.21

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


Problems to be Submitted (20 points)

  1. (6 points)

    Exercise 4.8 on page 151

  2. (7 points)

    Exercise 4.14 on page 152

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

  3. (7 points)

    Exercise 4.15 on page 152

    Test your program by comparing its output to the result of using the built in int(value, base) syntax.


Extra Credit

  1. (2 points)

    Exercise 4.16 on page 153


Last modified: Friday, 01 February 2013