INSTRUCTIONS
During the a coding quiz, you'll solve a programming challenge by writing code in Processing. You will have up to 15 minutes to complete this section. Each student will recieve a different challenge at random.
The next class period will offer a redo opportunity for any students who did poorly on the original. On the redo, you'll be given a random challenge and can complete it for a maximum score of 80%. You will receive the second score, even if it is lower.
The problems below are examples of the kinds of things I might ask you to do on a programming quiz. Your actual question will be very similar, but not identical, to one of these. On the right, I have an example of my rubric which is scored on 5 elements, then scaled to 20 points for the gradebooked.
EXAMPLES
Example #1
Canvas size: 600 x 600
Background: Orange
A yellow circle with a diameter of 50 pixels that starts at a random position on the left side of the screen
It moves to the right side at a speed of 5 pixels per frame
Each time it reaches the right side of the screen, it appears at a new random position on the left side and increases its size by 40%
If this change would make the circle's diameter greater than 300, set the diameter to 50.
Example Rubric
Colors
Orange Background
Yellow Circle
Movement
Moves to the right
Wrapping
Wraps from right to left
Okay if it clips into edge slightly
Grows
Up by 40% each time
Reset
Back to 50 pixels when it is over 300 pixels
Example #2
Canvas size: 600 x 600
Background: Blue
A white circle with a diameter of 30 pixels that starts at a random position on the bottom of the screen
It moves to the top at a speed of 2 pixels per frame
Each time it reaches the top of the screen, it appears at a new random position on the bottom of the screen and increases its speed by 50%.
If this change would make the circle's speed greater than 32 pixels per frame, it is instead reduced to 2 pixels per frame.
Example Rubric
Colors
Blue Background
White Circle
Movement
Moves to the top
Wrapping
Wraps from top to bottom
Okay if it clips into edge slightly
Speeds Up
Speeds up by 50%
Reset
Returns to speed 2 when it reaches speed 32
Example #3
Canvas size: 600 x 600
Background: Purple
A yellow sequare with a size of 50 pixels that starts near the center of the screen.
It moves down at a speed of 5 pixels per frame
When it hits the top or bottom edge of the window, it bounces. It must do so cleanly without clipping off the edge of the window.
Each time it reaches the top of the screen, it grows by 10 pixels in size.
Example Rubric
Colors
Blue Background
White Circle
Movement
Moves down initially
Bounce
Bounces off the bottom
Clean Bounce
Cannot clip into the edge
Change Size
Grows by 10 each time