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 04

Conditional statements

Contents:


Overview

Topic: Conditional statements and list comprehensions
Related Reading: Ch. 4.4, 4.5
Due: 1:10pm, Friday, 15 February 2013

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


Practice Problems

From the text: Practice 4.18-4.21 and 4.31-4.33

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


Problems to be Submitted (20 points)

  1. (5 points)

    Exercise 4.29 on page 155

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

  2. (5 points)

    Exercise 4.30 on page 156

  3. (5 points)

    Exercise 4.36 on page 156

  4. (5 points)

    Exercise 4.37 on page 156


Extra Credit

  1. (2 points)

    Exercise 4.38 on page 156


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