CSSE 220 – Object-Oriented Software Development

Homework 1

Objectives

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

Tasks

  1. Configuring Eclipse for Java: Hopefully you completed the following before or in class, but if not:

    Follow this link to instructions for updating Eclipse and Java.

    Install whatever is needed. If you have trouble doing so, please seek help right away. You can visit the CSSE Lab, Moench F-217, any Sunday-Thursday evening, and look for the CSSE 220 Assistant, or stop by my office.
  2. Programming: We started this in class. Finish the tasks that you have not already completed (on your own please) before the next class session, but be sure to seek help if you get stuck!
    1. Open the Eclipse application.

    2. Choose Window → Show View → Other ... → SVN → SVN Repositories to create a tab (at the bottom of the Eclipse workbench) for the SVN Repositories view.

    3. In the SVN Repositories view, right-click and choose New → Repository Location to add the following repository:

      http://svn.csse.rose-hulman.edu/repos/csse220-201320-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.

    4. Your programming work for this assignment must be done in the HW1 project in Eclipse. Use the SVN Repositories view to Checkout this project.

    5. Change the HelloPrinter program to say hello to someone else (if you did not complete this in class).
      • Change the @author tag to your own name.
      • Save and commit your changes.
    6. Enter, debug, and run the code for the Factorial program from the Session 1 slides (if you did not complete this in class).
      • Be sure to name the class Factorial, spelled just like that (case matters!).
      • Save and commit your changes. When committing, be sure to check the box to add Factorial.java to the repository.
    7. Write a new class SeriesSum with a method called seriesSum that calculates the sums of numbers from 1 to n, for positive integers n.
      • Model your code after the Factorial code. (So use a loop, instead of the closed-form formula for the sum.)
      • Be sure to name the class SeriesSum and the method seriesSum, spelled just like that (case matters!).
      • 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.
  3. Read these General Instructions for Grading Programs. The TAs and I will use these guidelines when grading your programming assignments. Go back and confirm that your programming work above follows the guidelines.

Remember, in all your code:

Here is the grading rubric for this assignment.

Turn-in Instructions

We will grade your Big Java assessment (i.e. quiz on the reading) using ANGEL. Turn-in your programming work by committing it to your SVN repository.