Homework Assignment

For Loops & Graphics

Overview

Topic: For Loops
Related Reading: Chapter 7
Due:

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.


Last modified: Monday, 24 September 2018