(Latest Revision: 08/31/00)
EXAMPLE OF A LEVEL THREE AND FINAL LEVEL 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-03" twice, with different test
responses input to it. We can see from the script that the level
03 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:21:12 1998
Thu Feb 5 23:21:13 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
*
**
***
****
*****
******
*******
********
*********
**********
***********
************
*************
**************
***************
**************
*************
************
***********
**********
*********
********
*******
******
*****
****
***
**
*
Would you like to see a pattern? Answer y or n: y
*
**
***
****
*****
******
*******
********
*********
**********
***********
************
*************
**************
***************
**************
*************
************
***********
**********
*********
********
*******
******
*****
****
***
**
*
Would you like to see a pattern? Answer y or n: n
john@omicron: exit
john@omicron:
script done on Thu Feb 5 23:21:33 1998