This project is designed to give you sufficient exposure to the graphics library and the use of simple C++ functions. Write three seperate C++ programs/projects to accomplish the following:
![]() |
![]() |
Create a separate project for each exercise.
Using the Delay function
For the animations, you may use the following Delay function:
#include <time.h>
void Delay(float); // prototype
void Delay(float seconds) { // creates a delay of specified seconds
// example: Delay(0.2); // o.2 seconds
// translate seconds into clock ticks
clock_t ticks = seconds * CLOCKS_PER_SEC;
// Get the current tick value of the clock
clock_t start = clock();
// Wait until current tick of clock exceeds the delay time
while (clock() - start < ticks)
;
}// end of Delay
What to Hand in:
For each Exercise, you will hand in the following:
Additionally, write a short paragraph/essay on your experiences in working on this assignment.
Each C++ program should have the following:
// Program Name: <The name of your C++ program file>
// Programmer: <Your name here>
// Address: <your
e-mail and Campus Address here>
// Assignment Number:
<put project number here, e.g. Project#1, Part A>
//
Purpose: <A short problem description>