
January 18th, 2011, 11:35 AM
|
|
Registered User
|
|
Join Date: Jan 2011
Location: California
Posts: 1
Time spent in forums: 28 m 43 sec
Reputation Power: 0
|
|
|
DrRacket Help
I am trying to teach myself programming using the "How To Design Programs" book which utilizes DrRacket. I am trying to complete an exercise where you define a program that converts Fahrenheit to Celsius, I got everthing to work except the file conversion, where it takes data from a file "in.dat" , converts the numbers and writes them to a new file "out.dat" When I run the command it looks like it is successful but then I go to the file, and there is no "out.dat" doc. Can someone tell me what is wrong?
Code:
(define (Fahrenheit->Celsius f)
(/ (* (- f 32) 5) 9))
(convert-file "in.dat" Fahrenheit->Celsius "out.dat")
|