CMPT 130 Assignment 2 Marking Guide Assignment must be done individually. 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. [35] Factors [3] Reads user input [5] Ensures input in range (>= min and <= max) [8] Print correct factors [4] Correctly identify primes & perfect numbers -2 if no prime detection, or mostly wrong -1 if missing one, or one extra -2 if not detecting any perfect numbers -1 if missing one, or one extra [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) Forward to Dr. Brian if... - Material is suspiciously similar to another submission as per MOSS report or personal inspection.