CS638 - Fall, 1999

Homework Assignment #2: Programming Warmup

Due before class, September 16, 1999

Last modified:

The goal of this programming assignment is to make sure everyone is able to use the programming tools that they need this semester. There is really no graphics involved in this assignment.

Your task is to write a program that shows that you know how to write programs in C++ under windows NT using the fltk library. (note: if you want to use another programming language and/or windowing library, read this page first, and send email to the instructor).

Your program should (at least) put up a window, respond to some user input, and do something in response to the mouse. We really don't care what your program does, as long as in the process of writing it you figure enough about the programming tools so that next week when we ask you to write a program to do something real, you've already figured out the basics (like how to run the compiler, how to configure the compiler to use fltk, how to put up a window, how to respond to the mouse, ...)

We will even post some sample programs (coming real soon - check back here) so you can see how we do it.

Handing things in:

Each student will get a handin directory. The handin directory will be ~cs638-2/handin/hw2/LOGIN (or p:\couse\cs638-gleicher\handin\hw2\LOGIN on NT) with your cs login in the place of LOGIN.

We will generate the directories based on the account info given to us by the registrar and CS lab staff. We will not make the accounts until Monday 9/13. If you look in the handin\hw2 directory and don't see a directory for yourself, send email to Richard (yugu@cs.wisc.edu). Note: there will may be a delay between your request and when he can make the directory for you, so please ask before Tuesday.

Do not work in the handin directory. Copy your files there once the program is working. (there won't be enough disk space for everyone to put all of their working files in the handin directory).

You should only copy the following files into the directory:

In short, we need all the files necesary to build your program (and a readme file). We do not want the executable, the debugging information, the .obj files, ...

Also, you need to configure things so they will compile in the CS environment. If you build your programs at home or somewhere besides a CS machine, you will probably need to change your project settings.

How this assignment will be graded:

Specific details

This assignment is different from the others since what we care about is that you figure enough out about how to program with C++, NT and fltk that you'll be ready to do a real programming assignment when we give it to you next week. Therefore, we will look at your program, make sure its correctly documented (so make sure the readme file explain what the program does), and probably look at your code to give you an idea if your coding meets our level of expectation. We probably won't check to see if your program actually works.

We will care if you follow directions. So I highly recommend you turn in the right files before the due date.

The idea is that if you blow off this assignment now, you'll have problems later (like next week) when we ask you to actually write real programs.

So, if you were lazy, you could copy one of the example programs, add comments giving proper attribution (remember the academic conduct rules!), add a readme file, and get full credit for the assignment. However, you may regret it (as soon as next week) when you're trying to figure out the basics of writing a program in C++ on NT with fltk, AND the graphics stuff you need to do.

On the other hand, if you're inspired and right some really cool program (be sure to describe it in your readme file), we may try it out to see how great it is.