Computer Science APEA 15-100, Summer 2009
Homework 14
Due: Tue 27-Jul-2009 at 11pm (email copy only)
(no late submissions accepted).
Read these instructions first!
- Now you are not given a file to start from! Based on previous
hw's, create your own Hw14.java file. Be sure to name it exactly
correctly, to include a main method that calls checkAssertsAreEnabled and
testAll, and to have testAll call suitable test methods for all the methods
you create. Also, be sure that every method you write has exactly the
right name and the right signature.
- Be sure to include your name, your Andrew ID, and your section clearly on the top of each file in your assignment.
- For non-programming problems:
- Place all your solutions to the non-programming problems in a single
file named Hw14 (with whatever extension is appropriate for the format you
choose, such as Hw14.txt or Hw14.html, etc). You must use one of these
file formats: plain text (txt), or RTF, or HTML, or Word (doc, not docx), or
PDF. No other file formats will be accepted.
- Show your work. Correct answers without supporting
calculations will not receive full credit.
- For programming problems:
- Try to use well-named variables, proper indenting, reasonable commenting,
etc.
- Note: You may use any/all Java concepts now!
- What to submit
- Create a submission directory like this: "koz-hw14" (replace
"koz" with your andrew id)
- Place all the files you are submitting in that directory, zip that
directory, and submit the zipped directory
- How to submit
- Send an email with the zipped submission directory as an attachment
to your CA by the submission deadline. Do not miss the deadline,
even by one minute! Email problems are not a valid excuse
for late submissions.
- It is recommended
that you "cc" yourself in that email, too, just to confirm that you properly
sent the email.
- Note:
- Improper submissions will be penalized up to 10 points and may be
rejected.
- Late submissions will be rejected.
- Reading
- Finish Lab 14
- Steelers Logo
- Reading
Read these sections of Chapter 6: 6.1 - 6.4 and 6.7 - 6.9.
Read these sections of Chapter 7: 7.1 - 7.8
- Finish Lab 14
Finish all the examples from lab 14. Include the solutions in your
submission, all in one file named Lab14.java (and one text file for the
mystery methods). Note: the lab collaboration policy continues to apply to
the lab problems. So you can collaborate at will to solve these problems.
This only applies to the lab problems -- all other problems in this
assignment are subject to the usual homework collaboration policy.
- Steelers Logo
Using the fillAstroid method from Lab 14 (three times, in fact), write a
program that draws the Steelers Logo:

The logo should be drawn as large as possible while remaining circular and
centered within the window. Use drawCenteredString for the string, and
don't worry about getting the font or spacing exactly right for the string.
Carpe diem!