CS 230 Fall 2009
Assignment 1 –Simple GUI
100 points
Assigned: 09/04/2009
Due: 09/14/2009 at the start of class
Pre-Lab (Do Before Lab): Bring materials – a way to
save a copy for you and a copy to turn in. Plan out tasks, objects, and events
needed for program.
Main Assignment:
Imagine
that you are writing a very basic program for a beginner learning
Spanish (we’re just starting out!). Imagine that they will have buttons for
“Red”, “Blue”, and “Green”, plus an “Exit” and a “Clear” button. The color
buttons should cause the corresponding Spanish word to be displayed on the
screen, with the corresponding color as the background color for the word. The
clear button should leave no word showing and a white background. The Exit
button should exit the application.
Background Knowledge:
- Spanish words for colors
are:
- Red – rojo
- Blue – azul
- Green – verde
Task Details:
- To use colors without
using RGB values you can use Color.Red (for example)
- MAKE SURE YOUR PROGRAM
WORKS! - it doesn’t have to just run, it needs to run correctly!
Miscellaneous:
- You must turn on
Option Strict and Option Explicit
- Put YOUR NAME, e-mail
address, date, and purpose of the program in comments at the beginning of
the program. The purpose should be what the program is supposed to do, not
the learning goals. Comments are indicated with a single quote (everything
after the single quote is only for humans)
- You MUST include
comments that explain your program in order to get full credit.
- Name all textboxes and
buttons meaningfully, and use conventions for starting their names.
- Make any textboxes
that user should never enter a value in “Read Only” (or use labels
instead!)
- Put your name on
the form as a Label or as part of the form title.
- Try to use good user
interface design. Make clear what user needs to do and what the answers
mean.
- The control where you
place the words will be easier to find and click on etc if you turn the
AutoSize property to false and size it yourself.
- This program is not
designed to be anywhere near as complicated as the color game application
in the book.
Hand in:
- Compressed (zipped) folder with your entire project
containing all files related to the project, submitted to
Blackboard.
- Print out of your code.