Docstoc

Graphics Assignments

Document Sample
Graphics Assignments Powered By Docstoc
					Graphics Assignments

For each of the assignments below, begin your program with the following:

/* your name
 title of program
 Chapter 3
 assignment #1

Date:

Short explanation of the purpose of the program */

Note:/* symbol indicates a comment line. This tells Java not to execute this line, it is only for the
purpose of giving information to a person reading your code. You can also use comment lines
throughout your program to explain the commands in your program.

                    Example:      // drawing a white star
                                  drawStar (100, 100, 50, 50)

Another word for commenting your code is called documentation. In the following assignments
document the code you write.

Your assignments will be marked for Application on correctness and the quality of graphics and
for Communication on documentation.

** For these assignments, use the paper grids to draw out your designs
before programming. The filenames are given to you.

1. Write a program that will create a picture of two traffic lights side by side. (Traffic.java)
   (Application 5 marks Communication 2 marks)


2. Create a new stamp for Canada Post. Use the maple leaf and star in your design.
   (Stamp.java) (Application 5 marks Communication 2 marks)


3. Write a program that will create a three dimensional die. (Dice.java)
   (Application 5 marks Communication 2 marks)


4. Create a futuristic scene that may contain stars, space ships, aliens, rockets, astronauts,
   other planets. You can add any futuristic image to the scene. (Scene.java)
   (Application 10 marks Communication 5 marks)

    OR

    Create a scene that contains mountains, a sun or a moon, clouds, stars and a small cottage.
    You may add other images to the scene (trees, animals, a river, etc) (Scene.java)
    (Application 10 marks Communication 5 marks)


Note: To make various sided polygons use and modify the provided polygon program

				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:15
posted:4/7/2010
language:English
pages:1