The assignment is to create a series of 25 smiley faces on the screen that are randomly generated. It will be on the top of a background that is created using loops.
On this assignment, there are not a lot of decisions to make. Thus, we are going to use the analysis to work out some important pieces of code.
| Level |
1 |
2 |
3 |
4 |
| Description |
Neither is completed coded. |
One of the options is coded. |
Both of the options are coded. |
Something extra is done. Make some more smiley faces
are coded. |
| Level |
1 |
2 |
3 |
4 |
| Description |
Neither is completed. |
One of the options is completed well, the other is
started. |
Both of the options are completed well. |
Something extra is done. More than one screen design
is created. Or more than one background is considered. Make sure that
you make you choice clear. |
A background that took about 40 lines to code - if has loops and ifs. You can make anything.
Follow these steps:
1. Make a background using loops and drawing shapes. You can comment it out while working on later parts of the program.
2. Create a smiley face that is 60 pixels in diameter. Make it at co-ordinate 0,0.
3. Change the smiley's code so that it is based on x,y instead of 0,0.
4. Make a row of 5 smiley faces. You will need a loop to do this. Due to the random numbers in the constructor, each face will look different.
5. Then, generate 25 smiley faces. Draw them in groups of 5 on the screen. You will need a loop aroud your first loop.
| Level |
1-2 |
3-4 |
5-6 |
7-8 |
| Code |
Only one smiley face over a background. |
Randomly generated smiley faces. Some minor errors. |
25 Randomly generated smiley faces over a background
created with a loop. |
Something extra is added. Perhaps a really fantastic
background or extra smiley face options. |
| Comments | Few | Title comments. | Comments before major loops and ifs. | Pictures and sources are correctly sourced at the top of the program. |
| Skill | Much help is needed to complete even the most basic pieces of code. | Mostly completed by yourself. Some major inefficiencies or looping errors. | Mostly completed by yourself. Quite efficient. No infinite loops. | Completed by yourself. Very efficient and extremely well completed. |