I gave this to my wiz-bang class yesterday. These three guys are smarter than I so I have to dream up projects that require them to think, not just code. The programming text book I am using, “Programming in Visual Basic 2008” by Bradley and Millspaugh, is right up there with watching grass grow. There is just something about giving really bright kids an assignment that I have not quite figured out myself. Keeps me awake during my prep preiod.
Write a program that will draw the picture below. You will need to import the Small Basic Library and use the turtle commands from Small Basic. Use a menu bar for Printing, Clearing and About. Use a GO button for executing. The program will require several procedures and a function.
User inputs are:
- Number of rows of bricks from a drop down menu. Min 2 rows, max 10 rows.
- Radius from center to inside of first row.
- Fill bricks with color or not. Use a color dialog.
- Width and length of bricks. It will be necessary to put max and min dimensions or there will be visual issues.
- If the bricks are colored, outline the bricks or not.
- If bricks are to be colored, a choice will be all bricks the same color or all rows different colors. If the different colors choice is made a dialog will open allowing a color choice for each of the n number of rows. (Example: 3 rows selected imply there are three colors to select.)
(The picture would not paste. Imagine bricks laid out in concentric circles.)