CSC 160 Extra Credit Problems for Midterm
Assigned Mar 24, Due SUNDAY April 2
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.
1. Develop a function to return the average of 3 exam scores.
2. Develop a function that will find the perimeter of a square given the
length of one of its sides.
3. Develop the function, total-inches. The function consumes a
length represented by two numbers: the first a number of feet, and
the second a number of inches. The function produces the total
length in inches. (Hint: There are 12 inches in a foot.)
4. Develop the function self-description which takes a name and
returns the description: My name is SOME-NAME and I am a CSC 160
student.
5. (Note: This question uses some stuff from Chapter 4. To figure
it out, you will either have to go ahead on your own, or be
creative.) Develop the function My-Grade-Is-B?, which returns
true for any grade between 80 and 89, and false
otherwise.
Last Modified: 3/26/06