Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 18th, 2011, 11:35 AM
soC0pth soC0pth is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2011
Location: California
Posts: 1 soC0pth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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")

Reply With Quote
  #2  
Old October 22nd, 2011, 12:39 AM
kody.dalin kody.dalin is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2011
Posts: 1 kody.dalin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 47 sec
Reputation Power: 0
is that everything?

Quote:
Originally Posted by soC0pth
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")



is this your entire code? if so i beleive that may be the issue. i only gave that section a brief glance but it looked like three functions were required to fully preform this task. i hoep this helps!

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > DrRacket Help

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap