Com Sci 105
Fundamentals of Computer Programming
Autumn 1998
Assignment 1
Electronic copy due: Sunday 10/18, 11:59 PM
Written part & hard copy due: Monday 10/19, beginning of class
The purpose of this assignment is to experiment with MacGambit
Scheme, and to learn about functions and how to form and evaluate
expressions. Run problem 3.9 in MacGambit, and hand it in
online as well as in a printout, as you did with assignment #0. The
other problems do not need to be run with MacGambit. You
may do them with pencil and paper, and hand in only the written
copy.
-
Exercise 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7.
-
Exercise 3.1, 3.3, 3.5, 3.9.
-
Convert the following arithmetic expressions to prefix form (ie Scheme notation):
- ((2 * 3) + 4) / 5
- ( 5 + 10 + (- 4 2)) / (2 * 6 / 3)
Last modified: Mon Oct 12 10:11:26 CDT 1998