September:02(Wed)
CS 162[M]
Homework Assignment #1
Due September 9 (Wednesday)
-
Read
our textbook's
Chapters 1-2.
-
Do Exercises 1.10, 1.11, 1.12, 1.13, 1.14, and 1.15 of
Sections 1.9–1.10 in
our textbook.
-
Near the top of Picture.java,
add your name to the list of authors.
-
For Exercise 1.14,
add the line "
private Circle sun2;"
at the indicated location,
and then add lines of code
at the end of the method draw().
-
For Exercise 1.15,
have the sunset occur
actually with your two-sun version of
Picture;
choose one of the suns to set.
Add your code achieving the sunset
at the end of the method draw().
For these exercises, submit a printout of your final version
of the source code, Picture.java,
and a printout of the final picture drawn —
after the sunset of one of the suns.
-
Do Exercises 1.17–1.25
from
our textbook.
-
Print the results from the Terminal Window
by copying the material from there,
pasting it into Notepad or something,
and then printing from there.