(Latest Revision: 08/31/00)

EXAMPLE OF A LEVEL TWO SCRIPT


This document is a sample of a script of some test runs of a
program.  It was produced by using the script command and running
the program in this directory called
"sampleProgramSubmission-level-02" twice, with different test
responses input to it.  We can see from the script that the level
02 program functioned correctly.  (The letters you see in
boldface are what I entered from the keyboard.  Everything else
is output from the program or the shell.)


--------------------------- start of script ---------------------------
Script started on Thu Feb  5 23:15:30 1998
Thu Feb  5 23:15:31 PST 1998
john@omicron: a.out

F. Scott Fitzgerald wrote a story about a diamond
as big as the Ritz Hotel in New York.  I hope you
like the little diamond that this program writes,
even though it is not a real one, and certainly not
anywhere near as large as the Ritz Hotel.

Would you like to see a pattern?  Answer y or n: n
john@omicron: a.out

F. Scott Fitzgerald wrote a story about a diamond
as big as the Ritz Hotel in New York.  I hope you
like the little diamond that this program writes,
even though it is not a real one, and certainly not
anywhere near as large as the Ritz Hotel.

Would you like to see a pattern?  Answer y or n: y
Here are 1 stars.
Here are 2 stars.
Here are 3 stars.
Here are 4 stars.
Here are 5 stars.
Here are 6 stars.
Here are 7 stars.
Here are 8 stars.
Here are 9 stars.
Here are 10 stars.
Here are 11 stars.
Here are 12 stars.
Here are 13 stars.
Here are 14 stars.
Here are 15 stars.
Here are 14 stars.
Here are 13 stars.
Here are 12 stars.
Here are 11 stars.
Here are 10 stars.
Here are 9 stars.
Here are 8 stars.
Here are 7 stars.
Here are 6 stars.
Here are 5 stars.
Here are 4 stars.
Here are 3 stars.
Here are 2 stars.
Here are 1 stars.
Would you like to see a pattern?  Answer y or n: y
Here are 1 stars.
Here are 2 stars.
Here are 3 stars.
Here are 4 stars.
Here are 5 stars.
Here are 6 stars.
Here are 7 stars.
Here are 8 stars.
Here are 9 stars.
Here are 10 stars.
Here are 11 stars.
Here are 12 stars.
Here are 13 stars.
Here are 14 stars.
Here are 15 stars.
Here are 14 stars.
Here are 13 stars.
Here are 12 stars.
Here are 11 stars.
Here are 10 stars.
Here are 9 stars.
Here are 8 stars.
Here are 7 stars.
Here are 6 stars.
Here are 5 stars.
Here are 4 stars.
Here are 3 stars.
Here are 2 stars.
Here are 1 stars.
Would you like to see a pattern?  Answer y or n: n
john@omicron: exit
john@omicron:
script done on Thu Feb  5 23:16:20 1998