Material to Understand

Exercises

  1. Write a function that computes the Fibonacci numbers using dotimes. Develop this function in a file.
  2. Compile the function and run the compiled version.
  3. Write a function that computes the Fibonacci numbers using do.
  4. Write a function that computes the Fibonacci numbers using do*.
  5. Use dolist to count the number of cs courses that appear in a list. For example, (count-cs '((cs 436)(cs 400)(cs 222))) should return a 3.
  6. Repeat the above question using count-if.

Note: Do not use archaic constructs such as loop, prog1, or progn!