Assignment 2 Common ErrorsOverall, assignment 2 showed improvement over assignment 1. ContractsMany students did not include type restrictions in the contracts. For example, in question 4, the bin-num is a string of length 4; a restriction of [len = 4] can be included for the parameter type string. TestsMany students were missing the boundary test cases:
ConstantsIn question 2, many students did not define any constants. For instance, 10% can be defined as discount. Constants allow you to give names to numbers, thus improving readability. Helper Functions
|
Last modified on Tuesday, 09 October 2012, at 15:43 hours.
Course Supported by Instructional Support Group