CSC 160 Extra Credit Problems for Midterm
Assigned Nov 19, Due FRIDAY Nov 30
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. Any points above 80
will be applied to a quiz grade (but no quiz grade will be increased
above 100).
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.", where
in each example, SOME-NAME is replaced by an actual name.
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. Develop the function make-circle
that takes in a radius and a color and returns the
outline of that circle with the given radius and
color.
Last Modified: 11/16/07