Course Home | Class Schedule | Moodle CMS | Git Submission | Perusall | Tutoring

Saint Louis University

Computer Science 1300
Introduction to Object-Oriented Programming

Michael Goldwasser

Spring 2020

Computer Science Department

Homework Assignment 07b

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


  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, Spring 2020
Last modified: Sunday, 22 December 2019
Course Home | Class Schedule | Moodle CMS | Git Submission | Perusall | Tutoring