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

Saint Louis University

Computer Science 1300
Introduction to Object-Oriented Programming

Michael Goldwasser

Fall 2017

Computer Science Department

Homework Assignment 03

For loops

Contents:


Overview

Topic: For loops
Related Reading: Ch. 4.1-4.3
Due: 11:00am, Wednesday, 20 September 2017

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

    Exercise 4.14 on page 152

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

  3. (6 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 1300, Fall 2017
Last modified: Monday, 06 February 2017
Course Home | Assignments | Computing Resources | Lab Hours/Tutoring | Python | Schedule | Submit