CS代考程序代写 (define pi 3.141592653589)

(define pi 3.141592653589)

;doesn’t matter how pi is defined
(define pi (/ 355 113.0))
(define pi (/ 22.0 7))

(define radius 10)
(define circumference (* 2 pi radius))

(define height 20)
(define areaCylinder1 (+ (* circumference height) (* 2 pi (* radius radius))))
(define areaCylinder2 (+ (* (* 2 (/ 22.0 7) 10) 20) (* 2 (/ 22.0 7) (* 10 10))))

(define a “hello\n”)
(define b ” world”)
(display a)(display b)
;(< a b) (newline) (display (+ 7 4)) (define userInput (read))