CPSC 425 Assignment 2
Scheme Lists
Due Before Class on Monday, January 19th

  1. Read sections 2.2.6 through 2.2.8 and 2.3 of the PLT Scheme Guide.
  2. For each of the following write a Scheme procedure without using the map procedure or any of the for procedures. For each you may assume that all input is valid.
    1. A procedure called average that takes a list of numbers and evaluates to the average of the numbers.
    2. A procedure in called sort that takes a list of numbers and evaluates to the same list of numbers in sorted ascending order.
    3. A procedure called median that takes a list of numbers and evaluates to the median of the numbers.

Submission: Submit a scheme file containing your code on the course blackboard site.