CS 101 - Introduction to Computing, Spring 2008

Project 4 - A Flag Collage

Due Date: Thursday 5/1/2008 at 11:59 pm

For this project, write a program that will create a collage of pictures that resembles the flag of a country. Your collage must be made by copying at least 3 pictures onto a blank canvas. Each of the three pictures must be modified in a different manner. These modification should be done to make the needed colors for the flag of your choice.

If the pictures used are thematically related to the country whose flag you chose, you will receive 10 point extra credit.

The following are examples of modification that you might want to do to the pictures chosen:

Check out examples of flags and an example of a finished example (this is from the original site of this project). As a suggestion, don't use a flag with a complex image/symbol on it. Here is a list of many flags from around the world.

You are to write and use at least two methods for this project. A good idea is to write methods for each of the three modifications. Also, you should hard code the name of the images used for this project. You are not to use pickAFile() to prompt the user for the names of the images used. You are to use setMediaPath() in the FileChooser class to read in the needed images.

Project Collaboration

You are allowed to receive help on this project from other students who are also taking CS 101. Each student must still complete and submit his/her own project. You will be required to include a Collaboration Statement somewhere on your project if you receive help. This statement can simply be something like the following:
For this project, I received help from the following member of CS 101.
This statement should list each helping student's name in a comment in the "header comment" of your Java file that includes the main() method.

Submission of your Project

You must electronically submit all of your files (all .java files, any image files and any other files used) via the UNIX turnin command using the project name of proj4.

The easiest way to submit the UNIX turnin command, is to create a directory that contains all of the files needed for your project. Then you turnin the entire directory. For example, assume you create a subdirectory in your WWW directory called proj4directory. In this "proj4directory" directory you contain all of the files needed for this assignment. If you are in your WWW directory, you can the type in the command:

    $> turnin -c cs101 -p proj4 proj4directory
To verify what you submitted using the turnin command type:
    $> turnin -c cs101 -p proj4 -v

This project was modified from project for Ga Tech's CS 1315.

CS 101 Home Page
Department of Computer Science
University of Illinois at Chicago