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

Saint Louis University

Computer Science 150
Introduction to Object-Oriented Programming

Michael Goldwasser

Spring 2011

Dept. of Math & Computer Science

Homework Assignment 03

For loops and conditionals

Contents:


Overview

Topic: For loops and conditionals
Related Reading: Ch. 4
Due: 9:00am, Wednesday 16 February 2011

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. (5 points)

    Exercise 4.8 on page 151

  2. (5 points)

    Exercise 4.14 on page 152

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

  3. (5 points)

    Exercise 4.29 on page 155

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

  4. (5 points)

    Exercise 4.30 on page 156


Extra Credit

  1. (2 points)

    Exercise 4.16 on page 153


Michael Goldwasser
CSCI 150, Spring 2011
Last modified: Sunday, 13 February 2011
Course Home | Assignments | Class Photo | Computing Resources | Lab Hours/Tutoring | Python | Schedule