Lecture notes for Computer Science I by James Tam Return to the course web page

CPSC 231: Assignment 2 (Marking)

Score Letter
A 163 - 170
A- 155 - 162
B+ 140 - 154
B 125 - 139
B- 110 - 124
C+ 95 - 109
C 80 - 94
C- 65 - 79
D+ 50 - 64
D 36 - 49
D- 24 - 35
F 0 - 23

SUBMISSION REQUIREMENTS

Item

Effect on grade

Insufficient or missing contact information in the body of the email Maximum of 2 marks lost1
Incorrect or missing information in the subject line of the email Maximum of 4 marks lost1
1 (Getting any marks for the assignment assumes of course that we can still figure out who you are)
 

PROGRAMMING STYLE

 

Actual mark

Max

  Naming conventions   2
  Layout and appearance of the source code (Python program)   2
  Layout and appearance of the program output (running the program)   2
  TOTAL   6
     

DOCUMENTATION

 

Actual mark

Max

  Program versioning employed   2
  Clear and correct list of program features   12
  Description of the program limitations   4
  TOTAL   18
     

 

PROGRAM FUNCTIONALITY

 Category I: Electrical usage

Actual mark

Max

  Displays instructions/prompt   1
  Allows a choice between estimate and actual usage   2
  Gets actual kilowatt hours from the user   1
  Calculates actual carbon footprint   2
  Gets accommodation size from the user   1
  Determines estimated footprint   3
  Properly handles errors in the input (for estimate and actual electrical usage)   4
  Allows the question to be skipped   1
  Shows intermediate results   1
  Subtotal for Category I   16

Category II: Heating

Actual mark

Max

  Displays instructions/prompt   1
  Gets accommodation size from the user   1
  Determines estimated footprint   3
  Properly handles errors in the input   2
  Allows the question to be skipped   1
  Shows intermediate results   1
  Subtotal for Category II   9

Category III: Transportation

Actual mark

Max

 

Question 1: Bus

 

 

  Displays instructions/prompt   1
  Gets miles from the user   1
  Error checks input and if detected allows question to be skipped   2
  Calculates footprint   2
  Displays intermediate result   1
  Subtotal for Question 1   7

 

Question 2: Train

 

 

  Displays instructions/prompt   1
  Gets miles from the user   1
  Error checks input and if detected allows question to be skipped   2
  Calculates footprint   2
  Displays intermediate result   1
  Subtotal for Question 2   7

 

Question 3: Car

 

 

  Displays instructions/prompt   1
  Gets mileage estimate from the user   1
  Error checks input   2
  Allows question to be skipped (1/2 mark if still asks next car question if this one is skipped). Reverse marking if questions asked in reverse order.   2
  Gets car size from the user   1
  Properly handles errors in the input   2
  Allows question to be skipped   1
  Properly determines the footprint for all cases   9
  Displays intermediate result   1
  Subtotal for Question 3   20
  Subtotal for Category III   34

Category IV: Food

Actual mark

Max

 

Question 1: Organic food

 

 

  Displays instructions/prompt   1
  Gets estimate from the user   1
  Properly handles errors in the input   2
  Allows question to be skipped   1
  Determines footprint   4
  Displays intermediate result   1
  Subtotal for Question 1   10

 

Question 2: Meat and dairy consumption

 

 

  Displays instructions/prompt   1
  Gets estimate from the user   1
  Properly handles errors in the input   2
  Allows question to be skipped   1
  Determines footprint   5
  Displays intermediate result   1
  Subtotal for Question 2   11

 

Question 3: Source and season of the food

 

 

  Displays instructions/prompt   1
  Gets category information from the user   1
  Properly handles errors in the input   2
  Allows question to be skipped   1
  Determines footprint   4
  Displays intermediate result   1
  Subtotal for Question 3   10

 

Question 4: Packaging and processing

 

 

  Displays instructions/prompt   1
  Gets category information from the user   1
  Properly handles errors in the input   2
  Allows question to be skipped   1
  Determines footprint   4
  Displays intermediate result   1
  Subtotal for Question 4   10

 

Question 5: Waste

 

 

  Displays instructions/prompt   1
  Gets estimate from the user   1
  Properly handles errors in the input   2
  Allows question to be skipped   1
  Determines footprint   4
  Displays intermediate result   1
  Subtotal for Question 5   10
  Subtotal for Category IV   51

Category V: Composting

Actual mark

Max

  Displays instructions/prompt   1
  Gets category information from the user   1
  Properly handles errors in the input   2
  Allows question to be skipped   1
  Determines footprint   3
  Displays intermediate result   1
  Subtotal for Category V   9

Category VI: Spending, consumption, recycling

Actual mark

Max

  Displays instructions/prompt   1
  Gets consumption level from the user   1
  Properly handles errors in the input   2
  Allows question to be skipped (1/2 mark if still asks next question about recycling if this one is skipped). Reverse marking if questions asked in reverse order.   2
  Gets recycling information from the user   1
  Properly handles errors in the input   2
  Allows question to be skipped   1
  Properly determines the footprint for all cases   16
  Displays intermediate results   1
  Subtotal for Category VI   27
       
  TOTAL FOR PROGRAM FUNCTIONALITY   146

 

TOTAL MARKS

 

LETTER GRADE