CISC108 Lecture Notes - Lecture 3: Animage, If And Only If

41 views7 pages

Document Summary

;; quick review: functions, signature, purpose statement, units tests. ;; batch vs. interactive programs, simple countdown clock. ;; boolean operations (and how you might use them in conditionals) ;; design recipe: defining your own types of data. ;; examples of applying design recipe (require 2htdp/image) ; you can test your functions by writing some applications, looking at. ; the output, and seeing if they give the answers you expect. ; suppose you make some change to your function? (this happens all the. In fact, this more typical than writing a function from. ; and/or you make some change to your test cases. ; you have to re-run all your tests! ; this is tedious: you have to enter them and check with your eyeball. ; wouldn"t it be better if the testing could be done and checked. ; take square area example, and transform examples into tests. ; note: these can be put before the function definitions.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents