PS6 Gradesheet
Name:
| Upload/Folder/Hardcopy issues | ||
| Code is uploaded properly, hard copies and soft copies submitted correctly and in the proper folder, folder is named with username |
2 |
|
| TASK 1: Rectangle | ||
The rectangle function uses recursion appropriately and
prints a rectangle of characters of the correct width and height for
all cases.
|
7 |
|
| Alternating lines of characters are correctly printed. |
1 |
|
| TOTAL FOR TASK 1 |
8 |
|
| TASK 2: Turtle Steps | ||
The steps function is recursive. No loops are used in the steps
function or in any helper function.
|
3 | |
| Helper functions are used appropriately and demonstrate mastery of encapsulation and abstraction. |
4 |
|
| Squares should alternate in color. The bottom leftmost square should correspond to the first color. No square should be adjacent to another square of the same color. |
2 |
|
| The distance between squares, both horizontal and vertical, should be as specified in the assignment description. |
3 |
|
The steps function as well as any helper function
should be invariant with respect to the turtle's position and heading.
|
4 |
|
| The program causes the turtle to draw the stair pattern correctly. |
4 |
|
| TOTAL FOR TASK 2 |
20 |
|
| TASK 3: Sierpinski's Gasket | ||
| The turtle should correctly draw level 0 and level 1 gaskets. |
4 |
|
| The turtle should correctly draw gaskets for levels greater than 1. |
7 |
|
| Recursion should be used appropriately. |
6 |
|
|
Good programming style is observed: - Code is concise and elegant - Comments are used throughout the program to ensure readability and to explain appropriate aspects of the code. |
3 |
|
| TOTAL FOR TASK 3 |
20 |
|
Total: /50