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

Return to the course web page

CPSC 217: Assignment 2 (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 and constant names (clear, self explanatory)   3
  Use of named constants as appropriate   1
  Boolean and mathematical expressions are simple and easy to read   4
 

Sub total for style

 

10

Documentation (marks may be awarded independent of program functionality)

   
  Header documentation: includes name and student ID   1
  Header documentation: contains overall description of program.   1
  Header documentation: demonstrates some form of versioning system employed (date or version #)   1
  Header documentation: Provides a list of the specific program features that were implemented   1
  Header documentation: Lists the program limitations   1
  In line documentation used for blocks of code (a looping and/or branching construct is a block)   3
 

Sub total for documentation

 

8

Functionality (only qualify for these marks if the program runs)

   
  Starting money correct and program runs for exactly ten years   2
  Implements a menu to allow the user to choose between the three investment products (display menu, get input, branches depending on option selected)   3
  Menu repeats as long as the user doesn't select one of the three products   3
  Investment "Product I" can be chosen, determines changes during a year (loss, gain, no change: 2 marks for each case): correct amount calculated and displayed   6
  Investment "Product II" can be chosen, determines changes during a year (loss, gain, no change: 2 marks for each case): correct amount calculated and displayed   6
  Investment "Product III" can be chosen, determines yearly gains: correct amount calculated and displayed   2
  At the end of each year: the 5 required pieces of information displayed in the correct format (the amounts displayed are somehow based on the original amount invested)   5
  The start balance of each year (after the first) is the end balance of the previous year   1
  End of simulation numbers displayed in the correct format  (the amounts displayed are somehow based on the original amount invested)   5
  Sub total   33
       

OVERALL ASSIGNMENT TOTAL

 

51

Grade Point for assignment

 

4.0

 

Raw score Grade point
51 4.0
50 3.9
49 3.8
48 3.7
47 3.6
46 3.5
45 3.4
44 3.3
43 3.2
42 3.1
41 3.0
39 - 40 2.9
37 - 38 2.8
35 - 36 2.7
33 - 34 2.6
30 - 31 2.5
29 - 30 2.4
27 - 28 2.3
24 - 25 2.2
22 - 23 2.1
21 2.0
20 1.9
19 1.8
18 1.7
17 1.6
16 1.5
15 1.4
14 1.3
13 1.2
12 1.1
11 1.0
10 0.7
< 10 0