[plt-scheme] why no display in DrScheme beginning student level?

From: Karen North (knorth at wt.net)
Date: Wed Sep 11 20:25:54 EDT 2002

Here is another idea for flexibility:

(define TEST1 10)

;;areaDisc: number -> number
(define (areaDisc radius)
  (* radius radius 22/7))

"The area of a disc with a radius of " TEST1 "is" (areaDisc TEST1)

But, how can the result remain on one line?


----- Original Message -----
From: Robert Bruce Findler <robby at cs.uchicago.edu>
To: Sharon M. Tuttle <st10 at humboldt.edu>
Cc: <plt-scheme at tux.cs.brown.edu>
Sent: Wednesday, September 11, 2002 6:41 PM
Subject: Re: [plt-scheme] why no display in DrScheme beginning student
level?


>   For list-related administrative tasks:
>     http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
> One simple solution to this problem is to put string constants in the
> middle of the program to show where the breaks are:
>
> "Area tests"
> (area 3)
> "should be"
> ...
>
> "Elephant tests"
> (animal-legs (make-elephant 4 ...))
> "should be"
> ...
>
> Hth,
> Robby
>
> At Wed, 11 Sep 2002 15:40:36 -0700 (PDT), "Sharon M. Tuttle" wrote:
> >   For list-related administrative tasks:
> >     http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> >
> >
> > I am using "How to Design Programs" for an introductory CS course
> > (hooray! although it may be the only time I get to use it --- sob!)
> >
> > Anyway, my students and I are noticing that, once you have a few
> > functions and tests in a file, it gets difficult to keep track of
> > which tests are which. I would like to use something like a c shell
> > "echo" command to just insert little comments before tests. I cannot
> > see how to do so in the "Beginning Student" level of DrScheme, however.
> >
> > I could have them change language to "Advanced Student", and then they
> > could use display, but that seems to be defeating the purpose of
> > the "Beginning Student" level (and the more coherent error messages,
> > etc.)
> >
> > We're only up to Section 4 (conditionals) so far --- am I missing an
> > obvious solution to this problem?
> >
> > Thanks,
> >
> > -- Sharon Tuttle
> >    Dept. of Computing Science
> >    Humboldt State University
> >
>
>




Posted on the users mailing list.