# temp - Question 1 Exercise...

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

;; 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
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

## This note was uploaded on 10/21/2010 for the course CS 135 taught by Professor Vasiga during the Fall '07 term at Waterloo.

Ask a homework question - tutors are online