Problem Set 1
This set of exercises will give everyone some practice with the basics of defining functions in Racket and more experience with the DrRacket development environment. These are crucial building blocks that will form the foundation of everything that will happen in this course, so start early and ask lots of questions.
Please test all your programs carefully and include all the test cases
with your program. You must have at least 3 check-expect
tests for
each function.
See the Canvas site for examples of solving similar exercises, and for info on how to submit your work.
Exercises
Do these exercises from Section 2.1 of the course text.
- Exercise 12 (3
pts)
- You do not need to define
csurface
.
- You do not need to define
- Exercise 14 (3 pts)
- Exercise 17 (4
pts)
- It’s fine to implement just
tall
andwide
, and notsquare
.
- It’s fine to implement just
- Exercise 18 (4 pts),
- Exercise 19 (4 pts)
Originally written by @elenam, with subsequent modifications by @NicMcPhee