Homework #02 (Due: Fri 16 Jan)
If you have not done so already get a copy of FirstInput.java (available
at the course website and in /home/data from JB 202 computers).
Take time to run the program and to examine the source to make sure you
have a general idea of how the program works. Then rename the class to
DogYears and save the change under the appropriate name. Then modify
the program so that it asks for a dog's age (in human years) and then
displays the dog's age in dog years. NOTE: 1 human year is equal to 7 dog
When you have completed the assignment and tested your program to verify
that it works correctly, email your source code (i.e., the DogYears.java file) to this account: firstname.lastname@example.org with a
subject line of ``P1 Homework #2''.
P.S. Once you finish the assignment, feel free to ``play around'' with the
program. Just for fun, see what other tasks you can convince your program
Here is information regarding where to find the software we've using in
class. You are not required to download/install these programs ... but
you want to, you'll need to obtain two free downloads:
- Java Standard Edition:
http://www.oracle.com/technetwork/java/javase/downloads/index.html and click on the
``Download JDK'' button for JDK 7u11. Follow the instructions
for your operating system and be sure to read the provided installation
- Visit http://www.jgrasp.org/ and click on the
``Download'' link. Select the appropriate download for your operating
system and follow the provided installation instructions.