P3

Scheme Programming

For this assignment, you will be writing procedures in Scheme.

Objectives


Specification

You should write the procedures described below. You should name each procedures as specified. (I need to know how to call them in order to test them.) All the procedures should return the specified result. Create a file called p3.scm which either contains all your code or loads files containing that code. I should be able to load p3.scm and then call all your functions. The last line of the file should be a display statement like

(display "p3 loaded\n")
which will tell me that your file loaded successfully.

Testing

I will put file called test3.scm which performs minimal testing of your implementation and show.scm which test3.scm uses, into the directory on onyx. Put both files in with your assignment files and load test3 into Scheme. Your procedures should at least load properly before running this test. I will do more extensive testing when I grade the assignment so it is to your advantage to think of as many ways to test your procedures as possible.

The functions you are defining are all independent of each other so you can get partial credit even if you don't get them all working. To make testing easier, any function you don't get working should have a stub with the same name that returns a message. Put your non-working code in a separate file and list it's name in your README file so I can look at what you tried.


Submission

Required files

Be sure the file names match exactly. I use a test script to run the programs; if it doesn't find the files it expects, you will automatically lose 5% of the points for the assignment.

Put all the required files for the assignment in a single directory, change to that directory and submit using the following command:

submit tcole cs354 3

Hints and Common Problems