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

  1. Complete Homework 0, if you have not already done so.
  2. Complete the HelloWorld exercise from Session 1, if you have not already done so.
  3. Read the Syllabus, noting that the first of the written problems below refers to this reading.
  4. Read Section 2.10, Object References, of Big Java (starts on page 53 and ends on page 56).
  5. Read Sections 6.1 through 6.4, Interation, of Big Java (starts on page 228 and ends on page 255).
  6. Skim/read Chapters 1 through 6 of Big Java, except skip sections that end in a letter (like 2.11G and 3.6T).
  7. 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.

  1. Read the Syllabus and then answer these questions:
    1. 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?
    2. What email address should you use for the fastest response to your questions in this course?
    3. List two electronic distractions, mentioned on the Syllabus, that you should avoid in class.
    4. How often do I expect you to check your email?
    5. 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?
    6. After three unexcused absences in this course, what do you have to do?
    7. Is there a “Late Day Bank Account” for this course? (Yes or No)
  2. 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?
  3. 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?
  4. 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++;
    	}
    
  5. Rewrite the above segment of code using an appropriate for statement.
  6. We have created a repository called
              csse221-200910-RepoPractice
    1. 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?
    2. In your working copy of the repository, create a text file called myPet-YOUR_USERNAME.txt where you replace YOUR_USERNAME
    3. 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.
  7. 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?