Exercise : Getting textbook code files

The textbook includes many complete programs. It can be helpful to download and run these programs on your own computer. To practice this, we are going to have you download and store the case study from the end of Chapter 3G. To do so, follow these steps:

  1. Go to the class web page.
  2. Click on the "textbook" tab.
  3. Find the section labeled "Code Files" and click on the "code files" link.
  4. This will bring you to a directory listing that includes an entry for each chapter. Click on the link for "ch3g".
  5. You want to download and save the file Pyramids.java. Right-click on the file name and choose the option to save the link in whatever folder you have been using for lab work.
  6. If you don't already have DrawingPanel in the folder you have been using, then go back to the previous page or click on "Parent Directory" and save DrawingPanel.java to your lab folder as well.
  7. Compile and run Pyramids.java in jGRASP.