Scheme, Assignment 1: Writing Functions
Fall 2005

  1. Create a Scheme directory: mkdir Scheme, cd Scheme

  2. To start Scheme type: "drscheme" or choose from the Applications/Programming menu

  3. Choose the correct Language (see the Language menu): Pretty Big in the PLT sub menu

  4. Example Scheme functions:

  5. Scheme assignment 1: Write the following functions:
    1. "convert3" Exer. 2.2.4
       > (convert3 5 2 8)
      825
       
    2. volume-cylinder Exer. 3.3.2 from Chapter 3
      > (volume-cylinder 10 24)
      7539.816
       
    3. area-cylinder Exer. 3.3.3
      > (area-cylinder 10 24)
      2136.2812000000004
       
    4. area-pipe Exer. 3.3.4
      > (area-pipe 10 24 .2)
      3046.0856639999997
       
    5. rocket-height Exer. 3.3.5
      > (rocket-height 10 60)
      18000.0