Programming Assignment 8:  Chat126


/******************************************************************************
 *  Approximate number of hours to complete this assignment
 ******************************************************************************/

Number of hours:


/******************************************************************************
 *  Paste two of your favorite, not too long, output fragments here. In
 *  addition to the pseudo-random text, indicate the order of your model
 *  and what text file you used.
 ******************************************************************************/

Fragment 1:
- Text file:
- Order:
- Fragment:

Fragment 2:
- Text file:
- Order:
- Fragment:


/******************************************************************************
 *  For the same input text file, run Chat126 with different values for the 
 *  order, k. What happens to the generated output as you change k? 
 *  Feel free to try additional values for k.
 *  
 ******************************************************************************/

> java-introcs Chat126 0 2000 < file
> java-introcs Chat126 1 2000 < file
> java-introcs Chat126 2 2000 < file
> java-introcs Chat126 8 2000 < file
> java-introcs Chat126 16 2000 < file
> java-introcs Chat126 32 2000 < file

/******************************************************************************
 *  Consider the following code fragment:
 *     ST<String, boolean[]> voteLog = new ST<String, boolean[]>();
 *     boolean[] votes = new boolean[10];
 *     voteLog.put("Bradley", votes);
 *     votes[0] = true;
 *
 *  Is it necessary to execute the statement voteLog.put("Bradley", votes); to
 *  update this entry in the symbol table?  Explain why or why not?
 * 
 ******************************************************************************/
 
Yes or no? Explain.

/******************************************************************************
 *  Did you encounter any serious problems? If so, please describe.
 ******************************************************************************/
 
Yes or no?

  
 
 
/******************************************************************************
 *  Write any other comments here.
 ******************************************************************************/
