UQ Students should read the Disclaimer & Warning
Note: This page dates from 2005, and is kept for historical purposes.
COMP2301 – Assignment One – C Programming (Stopwatch)
This assignment is a pass/fail assignment. I achieved a pass.
The goal of this assignment is write C code to generate on screen graphics representing a simple analogue / digital stopwatch .
The application must have the following features:
- Stopwatch face must have two hands. (Seconds, Minutes)
- Stopwatch face must have a circular outline
- Stopwatch face must contain a digital minutes : seconds display
- Second hand must sweep behind the digital display
- Code must be modular and make good use of C functions
- All graphics must be generated by pixel manipulation only
- Code comments must correctly reference the work of others
Compiled
(WIN32) binary (189 KB)
Assignment-1.h file
Assignment-1.c file
Assignment-1.h
Assignment-1.c
Code © Copyright 2004 Ned Martin
16-Mar-2004