Homework Assignment

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.


Last modified: Sunday, 22 December 2019