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:
-
Go to the .
-
Click on the "textbook" tab.
-
Find the section labeled "Code Files" and click on the "code files"
link.
-
This will bring you to a directory listing that includes an entry for
each chapter. Click on the link for "ch3g".
-
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.
-
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.
-
Compile and run
Pyramids.java
in jGRASP.