Course Home | Class Schedule | Assignments | Git Submission | Perusall | Python | Tutoring

Saint Louis University

Computer Science 1300/5001
Introduction to Object-Oriented Programming

Michael Goldwasser

Fall 2018

Computer Science Department

Homework Assignment 07

For Loops & Graphics

Overview

Topic: For Loops
Related Reading: Chapter 7
Due: 10:00am, Monday 24 September 2018

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


Problems to be Submitted (20 points)

  1. (10 points)

    Write a program which generates the following pattern, assuming that numSquares defines the number of squares and unitSize represents the width of each square.

  2. (10 points)

    Write a program which generates the following pattern, assuming that numLevels defines the number of levels and unitSize represents the width of each square.


Michael Goldwasser
CSCI 1300/5001, Fall 2018
Last modified: Monday, 24 September 2018
Course Home | Class Schedule | Assignments | Git Submission | Perusall | Python | Tutoring