|
Introduction to Computer Science I for non-majors by James Tam |
| Your score | Max score | ||
Coding style (marks may be awarded independent of program functionality) |
|||
| Appropriate use of white space (source code) | 2 | ||
| Self-documenting variable, constant and function names. | 3 | ||
| Use of named constants as appropriate | 2 | ||
| Boolean and mathematical expressions are simple and easy to read | 4 | ||
| Fewer than 3 functions written | -4 (two functions) -10 (one function) (See point below if no functions used) |
||
| Parameter passing not used in functions written by the student | -4 | ||
| Function return values not used in functions written by the student (unless a logical alternative such as pass by reference is employed - don't worry if you don't know the latter term yet, it comes up later) | -4 | ||
| Penalty: no functions employed in the assignment (no functions written by student, no parameter passing, no return values in student defined functions): maximum grade point that can be awarded is 2.3 regardless of other style and functionality considerations. | |||
| Penalty: Global variables employed | No penalty this time but indicate in future assignments marks will be lost unless globals explicitly allowed for the assignment | ||
| Penalty: functions aren't written according to principles taught in lecture (decomposition notes slide #70 - 71) | No penalty this time, this requirement will be applied with other assignments | ||
Sub total |
11 |
||
Documentation (marks may be awarded independent of program functionality) |
|||
| Header documentation contains overall description of program. | 1 | ||
| Some form of versioning system is demonstrated in the header documentation | 1 | ||
| Provides a list of the specific program features that were implemented | 1 | ||
| Lists the program limitations | 1 | ||
| Each function documented (see decomposition notes slide #68 for details) | 3 | ||
| Penalty: Name and tutorial section not included at top of program | -4 | ||
Sub total |
7 |
||
Functionality (only qualify for these marks if the program runs) |
|||
| Prompts for and gets as input number to be stored | 2 | ||
| Sign bit correct* | 2 | ||
| Mantissa correct when number 5 digits or less* | 4 | ||
| Mantissa correct when number exceeds 5 digits* | 8 | ||
| Exponent sign correct* | 2 | ||
| Value of exponent correct* | 4 | ||
| Output matches assignment requirements | 4 | ||
| Sub total | 26 | ||
OVERALL ASSIGNMENT TOTAL |
44 |
||
Grade Point for assignment |
|
4.0 |
|
*To get marks for these features your program needs to display these values onscreen
| Min raw score | Grade point |
| 0 | 0 |
| 7 | 0.7 |
| 10 | 1 |
| 14 | 1.1 |
| 15 | 1.2 |
| 16 | 1.3 |
| 17 | 1.4 |
| 18 | 1.5 |
| 19 | 1.6 |
| 20 | 1.7 |
| 21 | 1.8 |
| 22 | 1.9 |
| 23 | 2 |
| 24 | 2.1 |
| 25 | 2.2 |
| 26 | 2.3 |
| 27 | 2.4 |
| 28 | 2.5 |
| 29 | 2.6 |
| 30 | 2.7 |
| 31 | 2.8 |
| 32 | 2.9 |
| 33 | 3 |
| 34 | 3.2 |
| 35 | 3.3 |
| 36 | 3.4 |
| 37 | 3.5 |
| 38 | 3.6 |
| 40 | 3.7 |
| 41 | 3.8 |
| 42 | 3.9 |
| 43 | 3.9 |
| 44 | 4 |