|
home—lectures—recipe—exams—hws—D2L—breeze (snow day; distance)
Due:
Section 01: Sep.14 (Mon) 15:00, on D2L and hardcopy
Section 11: Sep.17 (WedThu) 19:00, D2L.
Your submitted file should be named “hw02b.rkt” as plain-text (which is what DrRacket saves as).
Standard instructions for all homeworks:
It's intended that you complete hw02 (on D2L) before working on this problem.
Follow the design recipe, steps 4,5,7,8. (You don't need to label each step; just turn in the final result.)
hint:You can certainly usecond (orif ) if you like, but they're not actually needed; you can instead use amin ormax in a clever (but standard) way.
1
If in doubt about exactly what constitutes a suffix, here's a definition:
We say that string a has b as a suffix, iff:
there exists a string x such that
We'll see later how, in a declarative language (Prolog), this definition is runnable code.
↩home—lectures—recipe—exams—hws—D2L—breeze (snow day; distance)
©2015, Ian Barland, Radford University Last modified 2015.Sep.16 (Wed) |
Please mail any suggestions (incl. typos, broken links) to ibarlandradford.edu |