Begin to become familiar with Eclipse and Subclipse for Java programming.
-
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:
- Add the question and answer to the Wiki following the posted Instructions.
- 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.
-
Complete the assigned reading for the next session, according to the course schedule. Since HW1 is due at the start of session 2, look under the reading column at session 2. (It is Big Java chapter 1 (just skim §1.1–1.2 and §1.6) and §2.1–2.7. After today, you'll have to look there—on the course schedule page—for the reading assignments.)
- 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.
- Complete the relevant assessment exercise on ANGEL under Lessons → Assignments. In this case, it's Big Java Chapter 2, first assessment.
- Configuring Eclipse for Java: Hopefully you completed the following before or in class, but if not:
Follow this link to instructions for configuring Eclipse for Java. Do the configuration described there, including creating a workspace for your Java programs (as described in the link).
Note: your laptop should already have:
If it lacks any of the above, use the above links to install whatever is needed. If you have trouble doing so, please seek help right away. You can visit the CSSE Lab, Moench F-217, most afternoons and any weekday evening, and look for the CSSE Fundamentals Assistant, or stop by my office.
- 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!
-
Open the Eclipse application.
-
Choose Window → Show View → Other ... → SVN → SVN Repositories
to create a tab (at the bottom of the Eclipse workbench) for the SVN Repositories view.
- 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-201130-
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.
-
Your programming work for this assignment must be done in the HW1
project in Eclipse. Use the SVN Repositories
view to Checkout this project.
- 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.
- 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.
- 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.
- 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:
- Write appropriate comments:
- Javadoc comments for public fields and methods.
- Explanations of anything else that is not obvious.
- Give self-documenting variable and method names:
- Use name completion in Eclipse, Ctrl-Space, to keep typing cost low and readability high.
- Use Ctrl-Shift-F in Eclipse to format your code.
- Take care of all auto-generated TODO’s.
- Then delete the TODO comment.
- Correct ALL compiler warnings.
- Quick Fix is your friend! But make sure you know what it’s doing for you. Sometimes it’s fickle.
Here is the grading rubric for this assignment.
We will grade your Wiki contributions (if any) and your Big Java assessment (i.e. quiz on the reading) using ANGEL. Turn-in your programming work by committing it to your SVN repository.