CSCI 1302 -- Software Development -- Summer 2008
HOMEWORK SETS
- General homework guidlines and submission directions are
here
(extensively revised 6-22).
Note that electronic submission is not expected
for HW 3; just bring the hard copy to class Wednesday.
-
Sample solutions to the exercises for homework sets 1, 2 and 3 can be found at
the web site for this course on WebCT :
from the home page click on the content module "HW Files".
-
HW 1, for June 18 : text exercises 3, 4, 5, and 6 on p. 671.
-
HW 2, for June 25 : text exercise 12 on p. 743 (write the code for this,
prompting the user for the filenames) AND the reverse, i.e., write code for
converting a text file of int and double values, one to a line, to a new file
in the specified binary format. Be sure to use the readUTF( ) method of
ObjectInputStream and the writeUTF( ) method of ObjectOutputStream for the
binary file reading and writing.
-
HW 3, for July 9 : Lewis and Denenberg p. 39 exc. 17 (all 3 parts),
exc. 23 (all 5 parts), and p. 68 excs. 15, 16, 17.
Note that for exercise 17(b) (p. 39) you may assume the stronger
conditions that a > b > 1 and x > 1 (to simplify the relationship).
-
HW 4 has been put forward to July 23, and there will only be four HW
assignments. This is to allow time for everyone to perform the compiles
and runs in Unix from the command line.
Here
are some suggestions to get you started.
The assignment is to
perform the "Investigation : Inheritance, Packages, and
Access Modifiers" contained in the HW 4 Instructions on WebCT. This
is based on Simon Gray's book, but be sure to consult the corrected
version (5 corrections are marked in the PDF file on WebCT). Do the
Visualization and Experiment (Parts 1, 2, and 3) portions (the others
are background information). You may obtain the "starter files" by
copying the directory from the instructor by executing the command
cp -r /home/profs/rwr/public_html/CS1302/HWFiles/H4 . <return>
from the command line while in the directory you wish to copy
it to on atlas.
The answers to the four Visualization questions you may turn in by
hard copy only, but the Experiment (Parts 1, 2, and 3) answers you should
turn in electronically as well as by hard copy. For those questions
include the code you wrote and the output and error messages the were
generated. You can capture the screen output from <some command>
(such as a compile or run) to a file <myfile> from the command line
by executing
<some command> >>:& <myfile> &
<return>
Here is Figure 1.15,
which is mentioned in the investigation description.