CSC 160 Extra Credit Problems
Assigned Nov 10, Due WED Nov 24



For students who received less than 80% on the midterm exam, up to 5 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 contract, purpose, three examples (with expected answers), a skeleton, an inventory, the function definition, and the testing in the Interactions Pane. 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 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.

2. Develop the function bullseye, which corresponds to the following textbook exercises: 5.3.5, 5.4.5, 5.8.4, 5.9.5, 5.11.4, and 5.12.1.

3. (Do this one after studying Chapter 7!) Develop the function average4 which returns the average of 4 quiz scores.


Submitting your Assignment
Please submit this assignment in a single Definitions Pane and a single Interactions Pane through Moodle. Points will be deducted for completing the assignment with multiple Definitions and/or Interactions Panes.

Be sure to include your first and last name as a comment in the first line of both your Definitions Pane and Interactions Pane.

The file name for the Definitions Pane needs to be "hwX[LastName]Def.rkt" where:
  • [LastName] is replaced with your last name.
  • For example, if I were submitting this assignment, I would name the file "hwXWittensteinDef.rkt".

    Similarly, the file name for the Interactions Pane needs to be "hwX[LastName]Int.rkt".

    Please let me know if this is not clear or if you are unsure exactly what filename to use. If these filenames are not used, points will be deducted from the assignment grade.




    Last Modified: 11/10/10