Chris Pollett>Old Classes>CS102, Spring 1999>Hw5

CS 102
HW#5

        Due on the web by 4pm, Thursday, April 8, 1999. Read Chapter 15 in Deitel and read to page 245 in Bailey. Then make a subdirectory of your homepage directory called hw5 (make sure you have the case right). The command to do this is cd public_html<ret> mkdir hw5 <ret>. Put your source code for this homework here. Leave the modifications on your homework so that no one can read or execute it until you want to submit the homework. When you decided to submit move into your public_html directory and type chmod -R a+rx hw5<ret>. Then under your browser find the class page and click on the homework bot to get it to collect your homework. After doing this, again in your public_html directory, type: chmod 0700 hw5 <ret>.

  1. Write a java application which has a frame with an editable textarea, a non editable textarea and a submit button. When the submit button is pressed, the application write the editable textarea information to a file stuff.txt. It then opens the file stuff.txt reads in the data and puts it in the non editable textarea. You should write code to catch any file error exceptions.

    The next two groups of problems all have short answers so don't be alarmed at the number of them. If a problem asks you to draw a tree do the best you can using character graphics.

  2. Do 11.1,11.2,11.3 out of Bailey. Put your answers in a file heap.txt