CS 115 Project 1 FULL Grading Sheet


Correctness (55 points)

Test Cases (50 points -- 5 points each)

Case # Num. Sports Number of participants Number of medals
1 1 10 0, 0, 0
2 1 10 10, 0, 0
3 1 10 10, 0, 1
4 3

10

10

10

5, 5, 0

5, 0, 5

0, 5, 5

53

10

15

20

10, 0, 0

5, 5, 5

0, 10, 10

63

10

15

20

5, 0, 0

0, 0, 0

5, 0, 0

7 3

10

10

10

0, 0, 0

10, 10, 10

1, 1, 1

8 4

10

10

10

10

0, 0, 0

2, 2, 2

0, 0, 1

1, 1, 1

9 4

10

100

1000

10000

0, 0, 0

0, 1, 0

0, 0, 5

10, 0, 0

10 4

1

10

100

1000

0, 0, 0

1, 0, 0

5, 5, 5

50, 50, 10

Spelling / grammar / punctuation (5 points)

Your spelling, punctuation, etc. get a separate score: each minor error in spacing, punctuation, or spelling gets a score of 2.5, and each major error gets a score of 5. Here is how the score translates to points on the assignment:

[5]Score = 0
-1 0 < Score <= 2.5
-2 2.5 < Score <= 5
-3 5 < Score <= 7.5
-4 7.5 < Score <= 10
-5Score > 10

Programming Style (25 points)

Docstring (5 points)

There should be a docstring at the top of your submitted file with the following information:

1 pt.Your name (first and last)
1 pt.The course (CS 115)
1 pt.The assignment (e.g., Project 1)
2 pts.A brief description of what the program does

Documentation (6 points)

Not counting the docstring, your program should contain at least three comments explaining aspects of your code that are potentially tricky for a person reading it to understand. You should assume that the person understands what Python syntax means but may not understand why you are doing what you are doing.

6 pts.You have at least 3 useful comments (2 points each)

Variables (5 points)

5 pts.Variables have helpful names that indicate what kind of information they contain.

Algorithm (4 points)

2 pts.Your algorithm is straightforward and easy to follow.
2 pts.Your algorithm is reasonably efficient, with no wasted computation or unused variables.

Program structure (5 points)

All or nothing: your code should define a main function and then call that function, just like our programs do in the lab. Other than library imports, the docstring, and the final call to main(), you should not have any stray code outside a function definition.

Catchall

For students using language features that were not covered in class, up to 5 points may be taken off if the principles of programming style are not adhered to when using these features. If you have any questions about what this means, ASK!