Instructor: Todd Dole
Success in the course is tied directly to your independent and successful completion of every homework assignment. This will mean time spent at the computer. The more proficient you become at using jGrasp and other tools, the more fun you will have (and the greater success you will have).
By completing this assignment, you will:
If you have not done so already get a copy of FirstInput.java (available here). 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: todd.dole@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!