- Stay on Teams for the duration of the test. I may ask you to turn on your cam or screenshare at any time
- You have three hours to complete the test
- You can access the Java reference and the Processing reference or the git reference if you need to look something up
- No use of notes or previously written code
- No collaboration or communication
In today's test you will be visualising tadpoles. Here is a video of the finished program (click the image for a video):
Tadpoles have the following characteristics:
Field | Description |
---|---|
length | The length of the tadpole. This is denoted by the number of segments drawn. This will range between 1 and 10. |
limbs | If the tadpole has limbs, these are drawn as lines either side of the segments. |
gender | This can be a value of m, f, h or n. m indicates male and is drawn with a line and a circle on the last segment. f indicates female and is drawn with a circle in the bottom segment. h indicates hermaphrodite and is drawn with both male and female symbols. n indicates no gender and nothing is drawn in the last segment. |
0 and 5 | |
eyes | The number of eyes. These are drawn on stalks from the head as per the video. This will range between 0 and 9 |
name | The name of the tadpole. This is a sequence of between 1 and 5 words selected randomly from a list of words. |
color | The color of the tadpole |
Pressing spacebar should randomise the values
To get full marks in the test, you should use classes, transforms and add some cool extra feature.
Marks | Description |
---|---|
10 | Length |
10 | Limbs |
20 | Gender |
20 | Eyes |
20 | Name |
20 | Bonus |
Submit a github repository with your solution or if you did not use git, submit via brightspace for a lower mark.