Corning Community College
ENGR1050 C for Engineers
To create a program that generates a number of images corresponding to various flags of varying levels of design complexity.
In “The C Book”, please read through Chapter 7.
In class we explored the visualization capabilities made available to us with the GD library.
For this project, you will be using that library to render images of various flags.
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).
You are tasked with creating two different flags (from one program), of differing levels of complexity. Namely, one “intermediate” flag, and one “medium” flag.
Difficulties are defined as follows:
An easy-level flag has the following criteria:
Intermediate-level flags are classified as follows:
It is your task to write a program that generate a total of two different flag images, hosted under your lab46 webspace under a fwf0/ directory, named and accessible as follows:
flag1 is to be in intermediate (or greater) level flag, and flag2 is to be a medium (or greater) level flag.
Opting to do higher difficulties may earn you some bonus points.
Your program should:
Some additional points of consideration:
I have prepared a grabit for resources related to this project. To obtain:
lab46:~/src/c4eng$ grabit c4eng fwf0 make: Entering directory '/var/public/fall2019/c4eng/fwf0' '/var/public/fall2019/c4eng/fwf0/Makefile' -> '/home/wedge/src/c4eng/fwf0/Makefile' '/var/public/fall2019/c4eng/fwf0/fwf0.c' -> '/home/wedge/src/c4eng/fwf0/fwf0.c' make: Leaving directory '/var/public/fall2019/c4eng/fwf0' lab46:~/src/c4eng$
At which point you can change into the newly created and populated fwf0 directory.
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
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:
$ submit c4eng fwf0 fwf0.c Submitting c4eng 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:
78:fwf0:final tally of results (78/78) *:fwf0:proper error checking and status reporting performed [13/13] *:fwf0:correct variable types and name lengths used [13/13] *:fwf0:proper output formatting per specifications, flag 1 [13/13] *:fwf0:proper output formatting per specifications, flag 2 [13/13] *:fwf0:no negative compiler messages for program [13/13] *:fwf0:code is pushed to lab46 repository [13/13]
Additionally: