Instructions

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 years.

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: cscihomework@hsutx.edu with a subject line of “P1 Homework #2”.

Have fun!

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 to accomplish!