Starting from:
$30

$24

Lab 1 Solution

For this lab you will practice using recursion to draw interesting gures. The programs draw squares.py and draw circles.py posted in the class webpage can be used to generate the following gures:

















































a) b) c)

















































a) b) c)

Using draw squares.py and draw circles.py as models, do the following:







1. Write a recursive method to draw the following gures:




















































a) b) c)




2. Write a recursive method to draw the following gures:







1




































a) b) c)




3. Write a recursive method to draw the following gures:




















































a) b) c)




4. Write a recursive method to draw the following gures:




















































a) b) c)




Write a report describing your work, as explained in the syllabus.


































2

More products