When you're ready to submit an exercise, follow these instructions to send your solution to the instructor by e-mail.
If DrScheme is not yet running, start it (by clicking on the DrScheme icon -- the red-and-blue circle with the Greek letter lambda on it -- on the front panel at the bottom of the screen).
If your program is not displayed in DrScheme's Definitions panel, you must have saved it in a file during a previous session with DrScheme. Take the following steps to call it up again:
Move the mouse pointer onto the word File on the menu bar at
the top of the DrScheme window and click the left mouse button.
Move the mouse pointer onto the word Open on the menu that
has just appeared and click the left mouse button.
In the small window that appears (with the title ``Get file''), if the name of the file containing your program is listed, move the mouse pointer onto it and click the left mouse button. You may need to adjust the scroll bar at the right to search through the list of available files; do this by moving the mouse pointer onto the raised ``bubble'' in the scroll bar, pressing and holding the left mouse button, and dragging the bubble along the bar, releasing it when the name of your file comes into sight.
(If you saved your program in a subdirectory of your home directory, move the mouse pointer onto the name of that subdirectory and click the left mouse button, then find the name of the file in the list that appears, as described above.)
You now have a DrScheme window showing a Definitions panel containing your program. (If you want to make any last-minute changes in the program, this is the time to make them.) Move the mouse pointer onto the Execute button near the top of the window and click the left mouse button to run your program. Any results generated directly by the program will appear in the Interactions panel.
Depending on the nature of your program, you may want to illustrate its behavior by running some test cases interactively. If so, move the mouse pointer to the bottom of the Interactions panel and click the left mouse button, then type in the expressions that run those test cases. The values of the expressions will appear in the Interactions panel.
Save the contents of the Definitions window in a text file: Move the mouse
pointer onto the word File in the menu bar and click the
left mouse button. Move the mouse pointer onto the phrase Save
Definitions as Text... in the menu that has just appeared. A small
window with the title ``Put File'' now appears. The name of the directory
within which DrScheme expects you to save the file is in the white rectangle
near the bottom of this window. Move the mouse pointer to the end of the
directory name, click the left mouse button, and edit the contents of the
white rectangle, adding a slash character and the name of the file in which
you want the program text to be saved (typically, this would be something
like frogs.ss -- .ss for ``Scheme source'').
Then move the mouse pointer onto the button labelled Ok (in
the lower right-hand corner of the ``Put File'' window) and click the left
mouse button.
Next, save the contents of the Interactions window in another text file:
Move the mouse pointer onto the word File in the menu bar and
click the left mouse button. Move the mouse pointer onto the phrase
Save Interactions as Text... in the menu that has just
appeared. The ``Put File'' window reappears. As before, move the mouse
pointer to the end of the directory name, click the left mouse button, and
edit the contents of the white rectangle, adding a slash character and the
name of the file in which you want the test runs to be saved -- something
like frogs.log would be a good choice. Move the mouse pointer
onto the Ok button and click the left mouse button.
At this point, everything that you want to turn in is contained in the two files that you have just created. (If you like, you can shut down DrScheme at this point.)
Start a terminal window (if you don't have one already) by moving the mouse pointer onto the screen-and-footprint icon on the front panel at the bottom of the screen and clicking the left mouse button.
Move the mouse pointer into a terminal window and type the command
cat frogs.ss frogs.log | mail stone
at the prompt, substituting the names of your own Definitions and
Interactions files for frogs.ss and frogs.log.
(The vertical-bar character | is essential.)
Here's how the message looks when it shows up in my mail reader:
From: George Spelvin <spelvin@math.grinnell.edu> To: stone@math.grinnell.edu Date: Mon, 31 Feb 2002 13:05:30 -0600 ;;; frogs -- an amphibian tallier ;;; George Spelvin ;;; February 31, 2002 ... Welcome to DrScheme, version 103. Language: Graphical Full Scheme (MrEd). > (frogs (list 'rabbit 'frog 'frog 'dog 'frog 'chipmunk)) 3 ...
(And so on.)
If you want, you can even have mail provide a ``Subject''
line of the header for you, by adding the option -s
followed by the desired subject header (enclosed in double quotes).
cat frogs.ss frogs.log | mail -s "Amphibian tallier" stone
Now the header will look like this in my mail reader:
From: George Spelvin <spelvin@math.grinnell.edu> To: stone@math.grinnell.edu Subject: Amphibian tallier Date: Mon, 31 Feb 2002 13:08:41 -0600
This document is available on the World Wide Web as
http://www.cs.grinnell.edu/~stone/courses/scheme/submitting-solutions.xhtml
created February 20, 1997
last revised July 10, 2001