- Home
- Syllabus
- Schedule and Slides
- Labs
- Homework
- Project
- Moodle
- PairEval
- Eclipse Tips
- Regrades
- Clicker Info
CS 201 - Homework
Go to the bottom of this page for information on getting Java, JCreator, Eclipse, etc.
Homework 0: I swear I used to be able to program this...
In this Homework, you (by yourself) will try to remember what programming in Java is like.
- Available: 01/16
- Due: 01/25 at 5:00 PM
- http://moodle.cs.virginia.edu/mod/assignment/view.php?id=28
Homework 1: Reading, Writing, and Arithmetic
In this Homework, you and your partner will work with file I/O, the Scanner class, and how to write code to an API.
- Available: 01/28
- Due: 02/08 at 5:00 PM
- HW1 Partner Assignments
- http://moodle.cs.virginia.edu/mod/assignment/view.php?id=71
Homework 2: This Assignment actually involves writing...
In this Homework, you and your partner will get some hands-on time with JUnit and will have to write up a testing document.
- Available: 02/11
- Due: 02/29 at 5:00 PM
- HW2 Partner Assignments
- http://moodle.cs.virginia.edu/mod/assignment/view.php?id=77
Homework 3: Six Degrees of Kevin Bacon
In this Homework, you and your partner will program the Six Degrees of Kevin Bacon. (I couldn't think of a more amusing title than was already here...)
- Available: 03/10
- Due: 03/21 at 5:00 PM
- HW3 Partner Assignments
- http://moodle.cs.virginia.edu/mod/assignment/view.php?id=87
Homework 4: Oh, that's just cruel...
In this Homework, you and your partner will be tasked with something that you will not enjoy. Sorry.
- Available: 04/14
- Due: 04/25 at 5:00 PM
Java and Java IDEs etc.
All the software described below is free!
Getting Java:
Note: If you're using a Mac, you already have Java installed.- Visit http://java.sun.com
- Under popular downloads (on the right) click on Java SE
- Click on Download
- Check that you agree with the license terms and then click on either the Windows Online or Offline at the top of the list of choices. If you're using Linux, choose one of the Linux-options below this.
- This will download a file with a .exe extension. Open the file (run the program) to install Java on your machine
Getting JCreator and/or DrJava:
Either of these are fine for HW1. Before HW2 is due, we'll teach you to use Eclipse and we want you to move to that. (It will make HW2 much easier since we'll be using the JUnit testing tool.) However, having one of these around to use is good when you want to do something quick and simple to try something out. (But you'll learn to like Eclipse for bigger programs!)- Find JCreator at http://www.jcreator.com/. Click on Products and then Downloads. This only runs under Windows. You want to choose the "JCreator LE version".
- Find DrJava on the main page at http://www.drjava.org. There is a Mac version and a PC version. There is also a Jar file that will run under Linux, Windows or the Mac as long as Java is installed.
Getting Eclipse:
Note: we make update these instructions before Lab 2 but this will work.- First be sure that you installed an up-date-date version of the Java SDK (as above)
- Visit http://eclipse.org
- Click on the orange Download button
- Click on Eclipse IDE for Java Developers link for your operating system
- What you get, specifically, when you download Eclipse is in fact a zip file. To "install" Eclipse, open the zip file and "extract" the files inside it into a new directory.
- You can put this new directory anywhere you like (or move it
after you unzip it).
For Windows users, you can put it into C:\Program Files or C:\Eclipse or anywhere.
For Mac users, you can put it in Applications or anywhere. - You'll now have a working Eclipse installation. To run Eclipse, go to your newly created eclipse directory and double-click on the Eclipse icon.
- [WINDOWS-ONLY TIP:] To make life easier, however, you can right click on this icon, select "create shortcut", then move the new shortcut to your desktop.
- [WINDOWS-ONLY TIP:] To extract files from the Zip file, Windows XP will do this if you double-click on the Zip file from Windows Explorer (the file-browser). Or, you can download a Zip utility like WinZip (but you don't have to).
