![]() |
![]() |
|
home—lectures—exams—hws—breeze (snow day)
MoWeFr section: Due Sep.07 (Wed) 17:00 (but hopefully you'll have it by class) (both hardcopy, and on Desire2Learn).
Thu section: Due Sep.08 (Thu) by class (on Desire2Learn).
Your name and the assignment-number
must be in a comment at the start of the file.
In the MWF section, we'll talk about test-cases (“
Note that some of the reading questions originally included here have been deferred for a week or two, for those who are still awaiting their textbook.
The exercises below are from the (free, online) book How to Design Programs. In DrRacket, set your language to “Beginning Student”: Language > Choose Language… > How to Design Programs > Beginning Student.
MWF section:
At least two test cases required for each (at least one non-trivial).
For inexact (floating-point) calculations,
(rectangle 80 20 'solid 'blue) (circle 20 'solid 'red) (ellipse 80 20 'outline 'orange) (beside (rectangle 80 20 'outline 'blue) (circle 20 'solid 'red)) (overlay (rectangle 80 20 'outline 'blue) (circle 20 'solid 'red)) ; Think of 'overlay' and 'beside' as being "addition for images" ; overlay with an offset: (overlay/offset (rectangle 80 20 'outline 'blue) 0 10 (circle 20 'solid 'red)) ; If you want to explore documentation: ; In DrRacket, position the caret on a function-name ; like 'overlay', and hit F1. |
See also scheme-resources.html.
home—lectures—exams—hws—breeze (snow day)
©2011, Ian Barland, Radford University Last modified 2011.Sep.17 (Sat) |
Please mail any suggestions (incl. typos, broken links) to ibarland ![]() |
![]() |