[ Home | Syllabus | Course Notes | Assignments | Search]
Assignment 1: Display Shapes
Description: This program will display different shapes depending on various mouse and keyboard events. Whenever the right mouse button is clicked down, the program will display a rectangle at that point on the screen. Whenever the left mouse button is clicked down, the program will display an ellipse at that point on the screen. Key presses will be handled as follows:
Key Pressed | Effect to be seen |
small letters ('a' to 'z') | Color inside the rectangles will be set to red. |
Capitol letters ('A' to 'Z') | Color inside the ellipses will be set to blue |
digit from '1' to '5' | Color inside the rectangle will be set to green |
digit from '6' to '9' | Color inside the ellipses will be set to yellow |
exclamation point ('!') | Color inside all objects will be set randomly |
Due: Feb. 6
FUNCTIONAL REQUIREMENTS:
IMPLEMENTATION REQUIREMENTS: