CSC 270 - Survey of Programming Languages

Assignment #15 - Evaluating Expressions

Due Friday, November 17, 2017

Using Dr. Racket, evaluate the following expressions:

  1. (+ 4 2)
  2. (- 37 55)
  3. (/ 108 12)
  4. (* 3.5 6.9)
  5. (/(+(- 2002 1965) (- 1999 1966)) 2)
  6. (*(-(+ 22 12) (- 30 17)) 3)
  7. (sin (/ 90 pi))
  8. (log(/ 8 2.3))
  9. (expt 10 0.4771)
  10. (remainder (+ 37 55) (- 108 97))

[Back to the Assignment Index]