CSSE 220 – Object-Oriented Software Development

Homework 1

Objectives

Begin to become familiar with Eclipse and Subclipse for Java programming. Learn how to use the Big Java Review Wiki.

Tasks

  1. Read the course sullabus and come to session 2 with any questions that you may have.
  2. Take a look at the Python vs Java document:  Go to the ANGEL course page.  Under Resources, click the + sign beside Java Resources.
  3. 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).
  4. ccc
  5. 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 (you can check your answers are at the end of the chapter). If there is something you do not understand, make note of it so you can ask about it.
  6. Edit the Big Java Review Wiki on ANGEL, adding answers to "three stars worth" of the review exercises from chapter 1. Be sure to carefully follow the instructions for doing this that are posted on the Wiki.
  7. Optional Course Setup Items:
    None of these is required, but I believe that taking the time to do all of them now will save you time in the future.
  8. Software Configuration: Hopefully you completed this in class, but if not, make sure you have installed and configured 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.
  9. Programming: We started this in class. Finish the tasks on your own before the next class session, and be sure to seek help if you get stuck!
    1. In the SVN Repository Exploring perspective in Eclipse, add the following repository:

      http://svn.cs.rose-hulman.edu/repos/csse220-200920-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 to your SVN repository. 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 to the repository. 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.