Introduction to Computer Science I for non-majors by James Tam

Return to the course web page

CPSC 217: Assignment 3 (Marking Key)

    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
  Penalty: Global variables employed   -2
  Penalty: functions aren't written according to principles taught in lecture (decomposition notes slide #46 - 47)   No penalty this time, this will be applied with other assignments
  Penalty: functions not employed in the assignment, maximum grade point that can be awarded is 1.7 regardless of other style and functionality considerations)    
 

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 #72 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