WEBGRAMMING ASSIGNMENT #2

Create a C program which draws your three initials on the screen using the graphics.h functions within C. Your initials must be minimally block letters (i.e., no single line representations). The resulting image should be in color.

The program should:

  1. clear the screen
  2. draw the three initials centered on the screen
  3. display your name, social security number and RICS account number on the bottom line of the sceen

The program should be compiled and stored on your RICS account and named pa2.exe.


TECHNICAL NOTE:

The compiler will need the file:

egavga.bgi

to correctly utilize the graphics.h functions. Copy this file from:

j:\applicn\tcplus\bgi\egavga.bgi

to your local directory which contains the c source files.


SAMPLE C:

Click here to get a sample c program with some elementary animation and graphics. You can use it as a template for your remaining programs.

After you see the demo.c file on the screen, click on FILE, then SAVE AS and save it to your account. Compile it and run it.


FLOWERS.C


Thsi is the output of flowers.c.
As an example, click here to get the source.
Compile it and try it!


Back to the syllabus, click here!
Last updated: Oct. 1, 1996 14:00