CS 2510                                            Assignment 2                                                    Dr. Woelfl

 

The purpose of assignment two is to gain practice with constructing tests for if statements and to take the

time thinking about code before typing rather than using “trial and error” to produce code.

 

Download the listing for the code given in class and revise it to produce the following bitmap image:

 

out1

 

Write your code so that each object has just one test to determine if a pixel is within that particular object. 

 

Descriptions of the objects from front to back are:

 

 

Do several runs using different values for width and height.  Hand in a copy of your code for the tests along with B&W copies of three runs using different heights and widths; the assignment is due at the beginning of class on Thursday of week four.