For this first project, we are providing a
template for you to
follow as a guide to how a lab report
should be organized.
You can copy the text from this page (use the edit functions in your
browser) and paste the text into a word processor and complete the
report. You can use the word processor that comes with the Linux
machines in the lab. You can find the word processor in the main
menu's Office submenu, or as a special icon within the main toolbar. If you take
this approach, there is no easy way to paste in example images from
DrScheme; the simplest alternative is just to staple a DrScheme
printout of the images to the back of your report, with references in
the body of your report, such as "see image 1." Also, when you copy
code from DrScheme and paste it into the word processor, you need to
be sure to put it into a fixed-width font such as
Courier, in order to preserve the indentation.
Alternatively, you can copy the template text into a Definitions window in Dr. Scheme. Even though it isn't much of a word processor, Dr. Scheme is adequate for a simple report like this, and using it will save you the hassles of cutting and pasting your code and images into a real word processor. We have a separate document with tips on using DrScheme to write a report.
To get some sense of how this project report will be graded, look at the grading sheet that we use.
Remember to attach a copy of the honor pledge to your report and to sign the pledge.
(require (lib "fungraph.ss" "concabs"))
(load "~mc27/labs/quilting/quilting.scm")
Now you should be able to see
each block by evaluating its name in the interaction window. In
addition to the blocks mentioned in the book, we have also included
two solid blocks, black-bb and white-bb.
(If you want to use DrScheme on machines outside our lab, you should
go to the page Using Concrete Abstractions
with DrScheme, which explains the whole process of setting up
DrScheme. In particular, be sure to read the section Libraries
for use with DrScheme., and you can then download quilting.scm
and load it in.)
stack and quarter-turn-right
procedures are built into our Scheme. Try them out as in exercise 1.8
on page 16 of the text, and make sure you understand what each does
and how combinations behave. (We should point out here that the code
from the book is available from the web page http://www.gustavus.edu/+max/concabs/code/ ;
simply follow the link for the chapter you want. Using these files
will substantially reduce your typing.) Note that names such as rcross-bb
continue to name the same, unmodified basic
block throughout. The procedures give you back transformed copies of
the image rather than changing the original image in any way.
Be sure to save your definition window early and often. (Just click the Save button.) Note that the next time you use DrScheme, you can simply open this file by using the File menu.
quilt and checkerboard themselves; if all
the recursion is confined to helper procedures, only those helper
procedures will need rewriting.resize-image procedure to it.
mirror-image.
Be creative!