Home > Articles > Programming > Java

  • Print
  • + Share This
This chapter is from the book


To extend your knowledge of the subjects covered today, try the following exercises:

  • Create a program that calculates how much a $14,000 investment would be worth if it increased in value by 40% during the first year, lost $1,500 in value the second year, and increased 12% in the third year.

  • Write a program that displays two numbers and uses the / and % operators to display the result and remainder after they are divided. Use the \t character escape code to separate the result and remainder in your output.

Where applicable, exercise solutions are offered on the book's Web site at http://www.java21pro.com.

  • + Share This
  • 🔖 Save To Your Account