Try Firefox!

Class 3: Scheme Lists I


Lists in Scheme
Do Scheme Lab 2.

Due by start of class on [see calendar]:
  • Scheme Lab 2 solutions to List Problem Set section, as a file mxxxxxxL02.scm, where mxxxxxx is your alpha. E-mail it to me.
  • Your code should pass at least the following tests:
    > (tip 37.5)
    (43.125 45.0)
    
    > (squares 7 14)
    (49 64 81 100 121 144 169 196)
    
    > (tip-range 72.35 15 20)
    (83.20249999999999 83.92599999999999 84.64949999999999 85.37299999999999 86.09649999999999 86.82)
    
    > (sum-abs '(-3 -2 8 -17 11))
    41
    
    > (sum-cash '((12 euro) (5 euro) (11.5 ukpound) (230 yen) (17 usdollar) (57 yen)))
    61.17057700000001
    
    > (std-dev '(78 82 81 79 78 76 81 80))
    1.9955307206712847
    	  

  • Christopher W Brown
    Last modified: Tue Sep 1 14:27:58 EDT 2009