Assignment 2 CIS 252 — Intro to Computer Science This homework covers material through the ﬁrst three chapters of Haskell: The Craft of Functional Programming (HCFP). This homework is oﬃcially due in class on Thursday, February 3 . However, it comes with an automatic extension: anything submitted to the bin in CST 3-210 by 1pm on Friday, February 4 will be accepted as being on time. You may work singly or in pairs on this assignment. Exercises Important: For each exercise, you are expected to come up with a good set of test cases to verify that your code works correctly. An important component of programming (and of problem solving in general) is coming up with useful tests to check all aspects of your solution. Speciﬁcally: • Part of your grade will be based on your inclusion of suﬃcient test cases. Simply running my examples is insuﬃcient: you must include test cases of your own creation. • As a general guideline: you should have at least one test case for each possible path. For
This is the end of the preview. Sign up
access the rest of the document.