Computer Science 202
Introduction to Programming
Fall 2013, The College of Saint Rose
Agenda
Write a program NightScene.java that uses while loops to draw the following image:
The bricks should be drawn across the bottom to fill the width of the canvas. The "stars" should be placed randomly throughout the top half of the canvas. All drawing should be done in the begin method - no mouse events need be processed.
For up to 5 bonus points, include something else in the scene that is also drawn using a while loop.
Please submit only the file NightScene.java in Submission Box under "InClass15" before you leave class.
Due at the start of class, Thursday, October 24.
Please submit answers to these questions in Submission Box under "LA15" by the start of our next class. We will discuss these questions at the start of class, so no late submissions are accepted. Please be sure that your name is clearly indicated in all submissions.
Examples