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

Saint Louis University

Computer Science 150
Introduction to Object-Oriented Programming

Michael Goldwasser

Spring 2010

Dept. of Math & Computer Science

Homework Assignment 03

For loops

Contents:


Overview

Topic: For loops
Related Reading: Ch. 4.1-4.3
Due: 9:00am, Friday 5 February 2010

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


Michael Goldwasser
CSCI 150, Spring 2010
Last modified: Monday, 01 February 2010
Course Home | Assignments | Class Photo | Computing Resources | Lab Hours/Tutoring | Schedule | Submit