CMPT 130 Assignment 2 Marking Guide Assignment must be done individually. Code which does not compile will be given a score of 0. Total = [50] marks. [15] Expression Trees a) [4] 3 for the tree, 1 for the answer. b) [6] 5 for the tree, 1 for the answer. c) [5] 4 for the tree, 1 for the answer. −0.5 per structural error in the tree. -0.5 for one or two wrong intermediate values. Evaluate the student's own tree (carry errors through). Min 0 per part. [35] Factors [3] Reads user input [5] Ensures input in range (>= min and <= max) [8] Print correct factors -2 if not correctly handling user entering largest value first. -2 if incorrect count of factors [4] Correctly identify primes & perfect squares -2 if no prime detection, or mostly wrong -1 if prime detection incorrect on only one number -2 if not detecting any perfect squares -1 if perfect squares incorrect on only one number -2 if using functions like sqrt() instead of counting factors. (Min 0 points for section) [4] Lineup output into columns [6] Correct creation and use of at least one function [5] Code quality - Great indentation! - Clear variable and function names - No magic numbers (where appropriate) - Reasonable use of comments. Forward to Dr. Brian if... - Material is suspiciously similar to another submission as per MOSS report or personal inspection.