Table of Contents

Corning Community College

CSCS1320 C/C++ Programming

Project: VISUALIZATION - FUN WITH FLAGS (fwf0)

Objective

To create a program that generates a representation of a flag of a certain level of design complexity.

Background

For this project, you will be using a graphics design library to render an image of a flag.

While you are not restricted to officially recognized country flags, they do offer a great starting point:

If there is some fictional country, other state/county/canton, or organization symbol you would like to implement instead, you are welcome to (so long as they conform to the difficulty levels specified below).

Difficulties are defined as follows:

Easy

An easy-level flag has the following criteria:

Intermediate

Intermediate-level flags are classified as follows:

Medium

Complex

Program

It is your task to write a program that generate a flag image, hosted under your lab46 webspace under a fwf0/ directory, named and accessible as follows:

The flag is to be an intermediate-level flag (although you might want to start with an easy-level flag to gain some practice with the library and things like coordinates); opting to do something of higher difficulty may earn you some bonus points.

Specifications

Your program should:

Grabbing project resources

I have prepared a grabit for resources related to this project. To obtain:

lab46:~/src/cprog$ grabit cprog fwf0
make: Entering directory '/var/public/SEMESTER/cprog/fwf0'
'/var/public/SEMESTER/cprog/fwf0/Makefile' -> '/home/wedge/src/cprog/fwf0/Makefile'
'/var/public/SEMESTER/cprog/fwf0/fwf0.c' -> '/home/wedge/src/cprog/fwf0/fwf0.c'
make: Leaving directory '/var/public/SEMESTER/cprog/fwf0'
lab46:~/src/cprog$ 

At which point you can change into the newly created and populated fwf0 directory.

Compiling

Since the grabit brought in a Makefile, you can compile your code simply by typing: make

Any compiler errors will go into a text file called errors

To do a full cleaning, run: make clean then make (or make debug)

If you'd like to see compiler messages as you compile, run: make debug

When done and ready to submit, on lab46: make submit

Submission

To successfully complete this project, the following criteria must be met:

To submit this program to me using the submit tool, run the following command at your lab46 prompt:

lab46:~/src/cprog/fwf0$ submit cprog fwf0 fwf0.c
Submitting cprog project "fwf0":
    -> fwf0.c(OK)

SUCCESSFULLY SUBMITTED

You should get some sort of confirmation indicating successful submission if all went according to plan. If not, check for typos and or locational mismatches.

What I'll be looking for:

26:fwf0:final tally of results (26/26)
*:fwf0:proper output formatting per specifications [13/13]
*:fwf0:no negative compiler messages for program [7/7]
*:fwf0:code is pushed to lab46 repository [6/6]

Additionally: