Homework 1
CSSE 221 – Fundamentals of Software Development Honors
Fall 2008–2009
Recall the
Due Dates
and
(from the syllabus)
the
Late (and early) Assignment Policy
and guidelines for
maintaining Academic Integrity.
Also recall that you can get help on any of these problems during the
CSSE lab assistant hours,
and you can use the Assignments Discussion Forum
on Angel to discuss, clarify, or get help on these problems.
Things to do
- Complete Homework 0,
if you have not already done so.
- Complete the HelloWorld exercise from Session 1,
if you have not already done so.
- Read the Syllabus,
noting that the first of the written problems below refers to this reading.
- Read Section 2.10, Object References, of Big Java
(starts on page 53 and ends on page 56).
- Do and self-check all the Self Check problems
that you encounter in this reading.
- You don't have to write down the answers to those Self Check problems;
just do them in your head and then check your answers against
the answers given at the end of the chapter.
- Note that one of your written problems (below)
asks you how many of these Self-Check problems you actually did.
- Read Sections 6.1 through 6.4, Interation, of Big Java
(starts on page 228 and ends on page 255).
- Do and self-check all the Self Check problems
that you encounter in this reading.
- You don't have to write down the answers to those Self Check problems;
just do them in your head and then check your answers against
the answers given at the end of the chapter.
- Note that one of your written problems (below)
asks you how many of these Self-Check problems you actually did.
- Skim/read Chapters 1 through 6 of Big Java,
except skip sections that end in a letter (like 2.11G and 3.6T).
- These chapters cover concepts that should be familiar to you,
even if the Java notation is not.
- If Java is new to you, you should read all of Chapters 1 through 6.
It is OK to take a week or so to complete that reading, but start today.
- We will not discuss the material of Chapters 1 through 6 in class
(except for sections that end in a letter, like 2.11G and 3.6T);
you are responsible for learning/reviewing the material of Chapters 1 through 6 outside of class.
If you have questions,
the
CSSE lab assistant hours
are a great time to get answers.
- Do the written problems below.
Written problems
Write your answers to these questions.
Turn your answers in via the appropriate Homework Drop Box on Angel.
- Read the Syllabus
and then answer these questions:
- Every Sunday through Thursday evening,
there are lab assistants to help you with this course.
- The assistants are available during the evening during what hours (i.e., from when to when)?
- The assistants are in what room?
- What email address should you use for the fastest response to your questions in this course?
- List two electronic distractions, mentioned on the Syllabus, that you should avoid in class.
- How often do I expect you to check your email?
- If you use someone else's ideas in work that you turn in for this course,
what are the two things that you have to do, according to the Syllabus?
- After three unexcused absences in this course,
what do you have to do?
- Is there a “Late Day Bank Account” for this course? (Yes or No)
- There are 2 Self-Check problems in Section 2.10 (part of your reading for this homework).
How many of these 2 Self-Check problems did you read, think about briefly, and check your answer
against the answer at the back of the chapter?
- Your answer to this problem is simply a number between 0 and 2 -- I believe
that you will be truthful.
- I hope that you did them all! It takes just a few minutes to do so!
- There are 8 Self-Check problems in Sections 6.1 through 6.4 (part of your reading for this homework).
How many of these 8 Self-Check problems did you read, think about briefly, and check your answer
against the answer at the back of the chapter?
- Your answer to this problem is simply a number between 0 and 8 -- I believe
that you will be truthful.
- I hope that you did them all! It takes just a few minutes to do so!
- What is the value of each variable after running the following block of code?
(Do this exercise by hand; don't run the code in a program.)
int x = 0, y = 0, z = 10;
while (x < z) {
y = y + x;
if (y > 10) {
y = y / 2;
}
x++;
}
- Rewrite the above segment of code using an appropriate
for statement.
- We have created a repository called
csse221-200910-RepoPractice
- Check out the repository using TortoiseSVN
and examine the contents of the repository to answer
the following question: What are the names of David Mutchler's two cats?
- In your working copy of the repository,
create a text file called myPet-YOUR_USERNAME.txt
where you replace YOUR_USERNAME
with your own Subversion username.
(For example, smithjs would create a text file called myPet-smithjs.txt.)
Put the name of one of your family's pets into that file
(make up a name if you prefer, or if you don't have a family pet).
Then add your new file to version control and commit it to the repository,
again using Tortoise SVN.
Recall that the full name of your individual repository for this course is:
csse221-200910-YOUR_USERNAME
where you replace YOUR_USERNAME with your own Subversion username.
We have placed a folder called MoreRepoPractice
in that repository.
Open Eclipse
and open its SVN Repository Exploring perspective.
Use Eclipse to examine the contents of your repository's MoreRepoPractice folder
and answer the following question:
Benson and a lot of other paranoid school administrators had spent our textbook dollars
on these idiot cameras that were supposed to do what?