CSSE 220 – Object-Oriented Software Development

Homework 1

Objectives

Begin to become familiar with Eclipse and Subclipse for Java programming.

Tasks

  1. On the course ANGEL site, find the Big Java Review Wiki. It’s on the Lessons tab. Read the Welcome page of the Wiki and the Instructions for the Review Wiki (see the link from the Welcome page).

    The Review Wiki isn't required this term, but I will give extra-credit for adding to the Wiki. If there is a Big Java Review Question not already answered on the Wiki, you can:

    1. Add the question and answer to the Wiki following the posted Instructions.
    2. Send an email to csse220-staff letting us know that you've added an answer.

    We'll double check your answer and give you some extra-credit points. The more stars on the review question, the more points awarded. You should check with your professor before tackling a three-star question.

  2. Complete the assigned reading for the next session: read Big Java chapter 1 (just skim §1.1–1.2 and §1.5) and §2.1–2.7. (The course schedule will list the reading to be completed before each session.) As you read, see if you can answer the self-check questions. If there is something you do not understand, make note of it so you can ask about it.

    A note on Big Java: Big Java is, well, big. Much of the information in the first few chapters might be review to some students. Please feel free to skim sections that are review, but make it a habit to do the assigned reading. As we move past the first chapters more of the material will be completely new.

  3. Complete the relevant assessment exercise on ANGEL under Lessons → Assignments. In this case, it's Big Java Chapter 2, first assessment.
  4. Software Configuration: Hopefully you completed this in class, but if not, make sure you have installed and configured all the following software: If you have trouble with any of this, please seek help right away. You can visit the CSSE Lab, F217 any afternoon or evening, and look for the CSSE Fundamentals Assistant, or stop by my office.
  5. Programming: We started this in class. Finish the tasks on your own before the next class session, but be sure to seek help if your stuck!
    1. In the SVN Repository Exploring perspective in Eclipse, add the following repository:

      http://svn.cs.rose-hulman.edu/repos/csse220-201010-username

      where username is your Rose-Hulman username.

      You may need to enter your SVN (not Kerberos) password if Eclipse hasn't already cached it. Let me know if you need me to reset your SVN password.

    2. Your programming work for this assignment must be done in the HW1 project inside Eclipse. Use the SVN Repository Exploring perspective to check out this project, then switch back to the Java perspective.

    3. Change the HelloPrinter.java program to say hello to someone else. Save and commit your changes.
    4. Enter, debug, and run the code for the Factorial program from the Session 1 slides.
      • Be sure to name the class Factorial.
      • Save and commit your changes. When committing, be sure to check the box to add Factorial.java to the repository.
    5. Write a new class SeriesSum that calculates the sums of numbers from 1 to n, for positive integers n.
      • Model your code after the Factorial code.
      • Be sure to use appropriate class, method, and variable names.
      • How large a value can you use for n before integer overflow occurs? (Put your answer in a comment in your program.)
      • Save and commit your changes. When committing, be sure to check the box to add SeriesSum.java to the repository.

Turn-in Instructions

We will grade your Wiki contributions using ANGEL. Turn-in your programming work by committing it to your SVN repository.