Sunday, November 3, 2013

Project #1

Our first project assignment was due on last Friday and I think I did pretty well on it even though I haven't received the results. That project mainly asked us to add several definitions to make the entire program run properly. Basically I didn't experience any difficulty adding the definitions, but I was confused about the first three lines in the file at first. It said: "
;; The first three lines of this file were inserted by DrRacket. They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname sneeze) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ())))",
with them copied to my definition pane of the Dr. Racket, my program can't run successfully. I later figured out that those lines are really generated automatically when saving .rkt to .txt form. So I shouldn't have copied and pasted all those stuff from the .txt file but should save it and then open it with Dr. Racket. By doing so, those lines did not appear on the definition pane. In the end, I successfully finished all the needed areas and submitted it with the properly run sneeze simulation. 
 

No comments:

Post a Comment