All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----com.roguewave.examples.money.currency.v1_0.Savings
BigDecimal
class.
public Savings()
public static void main(String args[])
java com.roguewave.examples.money.currency.v1_0.Savings
Output should appear as follows:
Yearly interest rate is 12.00% You are depositing $25.00 every month This computation will stop once you are a millionaire After 1 years, balance is $317.00 After 2 years, balance is $674.00 After 3 years, balance is $1,076.00 After 4 years, balance is $1,530.00 After 5 years, balance is $2,041.00 After 6 years, balance is $2,617.00 After 7 years, balance is $3,266.00 After 8 years, balance is $3,998.00 After 9 years, balance is $4,822.00 After 10 years, balance is $5,750.00 After 11 years, balance is $6,797.00 After 12 years, balance is $7,976.00 After 13 years, balance is $9,305.00 After 14 years, balance is $10,802.00 After 15 years, balance is $12,489.00 After 16 years, balance is $14,390.00 After 17 years, balance is $16,532.00 After 18 years, balance is $18,946.00 After 19 years, balance is $21,666.00 After 20 years, balance is $24,731.00 After 21 years, balance is $28,185.00 After 22 years, balance is $32,076.00 After 23 years, balance is $36,461.00 After 24 years, balance is $41,403.00 After 25 years, balance is $46,971.00 After 26 years, balance is $53,245.00 After 27 years, balance is $60,315.00 After 28 years, balance is $68,281.00 After 29 years, balance is $77,258.00 After 30 years, balance is $87,374.00 After 31 years, balance is $98,772.00 After 32 years, balance is $111,616.00 After 33 years, balance is $126,089.00 After 34 years, balance is $142,397.00 After 35 years, balance is $160,773.00 After 36 years, balance is $181,481.00 After 37 years, balance is $204,814.00 After 38 years, balance is $231,107.00 After 39 years, balance is $260,734.00 After 40 years, balance is $294,119.00 After 41 years, balance is $331,738.00 After 42 years, balance is $374,127.00 After 43 years, balance is $421,893.00 After 44 years, balance is $475,717.00 After 45 years, balance is $536,367.00 After 46 years, balance is $604,709.00 After 47 years, balance is $681,718.00 After 48 years, balance is $768,494.00 After 49 years, balance is $866,275.00 After 50 years, balance is $976,458.00 After 51 years, balance is $1,100,614.00
All Packages Class Hierarchy This Package Previous Next Index