Docstoc
EXCLUSIVE OFFER FOR DOCSTOC USERS
Try the all-new QuickBooks Online for FREE.  No credit card required.

java question

Document Sample
java question Powered By Docstoc
					Due: Thursday, 2/18 (10 PM)
Include Notes and Comments to justify your coding
Please write a Java application to complete following task:
1. Given a starting principal (double), beginning financial year (integer), and an annual
compound interest rate (double), print the financial year and the interest when the
interest is larger than 100, 200, 300, ...., 1,000 the first time.

2. prints the results in table format as shown below:

Year Interest           Interest Level
------------------------------------------------
2009       250.0000        100
2009       250.0000        200
2013       303.8766        300
2019       407.2237        400
2024       519.7320        500
2027       601.6548        600
2031       731.3152        700
2033       806.2750        800
2036 933.3641              900
2038 1029.0339             1000
------------------------------------------------

3.The above result was generated when we set: starting principal = 5000, beginning
financial year = 2008, compound annual interest rate = 5%. It is only for the testing. The
program should work for any other given starting principal, beginning financial year, and
annual compound interest rate.

4.Name the Java source code file as EarnedInterest.java
=

				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:2
posted:2/13/2010
language:English
pages:1
Description: hi it is best describe online class.