CSC 160 Extra Credit Problems for Midterm
Assigned Oct 20, Due SUNDAY Oct 29



For students who received less than 80% on the midterm exam, up to 3 points may be added to your midterm score (up to a maximum of 80%) for each program listed here that is successfully done. That means for each problem, include its purpose, contract, three examples, a skeleton, the actual Scheme function, and the test file. This assignment will NOT be accepted late for any reason.


1. Develop a function that will find the perimeter of a square given the length of one of its sides.

2. Develop the function self-description which takes a name and returns the description: "SOME-NAME is an Adelphi student."

3. Develop the function average4 which returns the average of 4 quiz scores.

4. Develop the function blot which takes an image and a string (color). It returns the image with the center covered by a dot (small circle) with that color.

5. Exercise 5.20 in Simply Scheme (on page 69).





Last Modified: 10/20/06