temp - ;; Question 1 ; ;; Exercise 2.2.1 (define...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
;; The first three lines of this file were inserted by DrScheme. They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname temp) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ()))) ;;Ru Wang, r46wang, 20319247
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ;; Question 1 ; ;; Exercise 2.2.1 (define (Fahrenheit->Celsius F) (* (- F 32) (/ 5 9))) ;; Exercise 3.3.6 (define (Celsius->Fahrenheit C) (+ (* C (/ 9 5)) 32)) ;; I : number -> number ;; to convert a Fahrenheit temperature to Celsius and back (define (I f) (Celsius->Fahrenheit (Fahrenheit->Celsius f))) (I 32) ;; the answer is 32....
View Full Document

Ask a homework question - tutors are online