Computer Science 15-100 (Sections T & U), Fall 2007
Homework 2
Due: Thu 13-Sep-2007 at 3:00pm (no late submissions accepted).
Note: If you will not be attending Thursday's optional lecture, you
still must submit your assignment by 3pm that day. Remember: you can
drop off your written submission at Angie Brookins' office (http://www.cs.cmu.edu/~angieb/),
and you can email your electronic submission to your CA, and you can do this any
time prior to the deadline and not just at the last minute!
- Be sure to include your name, your Andrew ID, and your section (T or
U) clearly on the top of your assignment (both written and electronic)!
- SHOW YOUR WORK. Correct answers without supporting calculations
will not receive full credit.
- All work for this assignment should be submitted both physically and
electronically by the
start of class, as such:
- The physical copy must exactly match the electronic copy. No
exceptions!
- The physical copy should be dropped off at class, or if you will not
be attending class (and cannot arrange for someone else to drop off your
assignment), then it can be dropped off at Angie Brookins' office by the
submission deadline.
- You should email the electronic copy, by the submission deadline, as
one email with two attachments to your CA with this subject:
Subject: 15-100 hw2 submission
- The first attachment will contain your written answers, either in a
text document or a Word document.
- The second attachment will contain your programming answers, all in
one file with one public class.
- Note: Your CA will check for submissions each evening, and
every couple of hours on the due date, and your CA will reply to submissions
with a simple "Ack" to acknowledge receipt. If you do not receive an
email "Ack", then you should presume your submission was not received
and immediately contact your CA and the instructor. Note that, except
for extreme circumstances, email and other such problems are not valid
excuses for deadline extensions.
- Read L&L Chapter 2.
- Study the Key Concepts and the Self-Review Questions and Answers in
Chapter 2. Do not submit these.
- Do the following Exercises from Chapter 2:
Exercises 2.3 - 2.11, 2.17 - 2.18.
- Do the following Programming Projects from Chapter 2:
PP 2.2, 2.5, 2.6, 2.7, 2.9, 2.17, 2.18, 2.19, 2.20.
- Write a program that uses the drawing methods we have covered to draw
each of the following flags. Important note: the flag must fill
the entire window, even as the window is being resized by the user. In
this case, you may get dimensions that make the flag look peculiar, but
nonetheless it should adjust reasonably to the window's dimensions.
- Hungary

- Iceland

- Macedonia

- European Union
Note: here, you may replace the stars with yellow circles -- the
point is for you to use trigonometric functions to determine the centers of
the star-circles.

- BONUS (optional): Australia
Note: Here, you do have to draw the stars for full credit, but you
can draw circles for stars for less bonus.

- BONUS (optional):: Micronesia
Note: here, you must draw the stars, and they must be properly
rotated

Carpe diem!