Course Home | Assignments | Computing Resources | Lab Hours/Tutoring | Python | Schedule | Submit

Saint Louis University

Computer Science 150
Introduction to Object-Oriented Programming

Michael Goldwasser

Spring 2013

Dept. of Math & Computer Science

Homework Assignment 03

For loops

Contents:


Overview

Topic: For loops
Related Reading: Ch. 4.1-4.3
Due: 1:10pm, Friday, 8 February 2013

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


Michael Goldwasser
CSCI 150, Spring 2013
Last modified: Friday, 01 February 2013
Course Home | Assignments | Computing Resources | Lab Hours/Tutoring | Python | Schedule | Submit