Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

pts) Ever wanted to retire as a millionaire? Long-term saving with compound interest the idea that any interest earned on your money will itself earn

image text in transcribed

image text in transcribed

image text in transcribed

pts) Ever wanted to retire as a millionaire? Long-term saving with compound interest the idea that any interest earned on your money will itself earn interest in the future - is the key to this. For example let's say that you invest S1000 now into the stock market, and you assume a somewhat conservative real return of 6% per year (This isn't technically "interest" in the usual sense of a guaranteed payment macle by a bank, but to keep things simple we'll call it "interest" here. The idea is exactly the same!) At the end of each year, you also contribute an extra S1000 into the account. Every year that passes, you will earn money from two sources: 1) the interest earned on your existing amount, and 2) your S1000 contribution. Here's how your money will grow over the first ten years: Interest 60.80 Contribution End Balance 2868.08 3183.68 4374.62 563789 6975.32 1808.ee 1808.8 1080.8e 262.48 338.23 418.52 1868.0 1098 , 8 108000 1800.8e 1800.8 1808.98 9897.47 11491.32 13188.79 14971.64 18 790.85 In absolute terms, these numbers don't look terribly impressive. However. note that the interest earned every year keeps increasing, since it's based on the current amount in the account. Let's consider the same scenario, but over a 40-year working career. Here's what the growth looks like over the last ten 90889.78 97343.16 184183.75 111434.78 119128.87 127268.12 135904.21 145058.46 154761.97 165047.68 1808.88 1888.8 1880.e0 1880.88 5088.168 5848.59 6251.83 668609 7147.25 34 1800,8e 1ee.e 8154.25 8783.51 9285.72 1800.88 1808.80 You're earning much more in interest each year than your own Now things are getting more interesting! contributions. In other words, your money is making more money for you. The code needed to run this simulation is fairly straightforward Number of years to grow Interest rate per year, expressed as a decimal int years = 40 double double balance 1000 double contribution 1000; rate = 0.06; ? How much is in the account (starting balance) How much to add at the end of each year System out.format ("5s815 15st15sn", "Year", "Interest", "Contribution" End Balance") current year Repeat for years times while (y

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

Students also viewed these Databases questions

Question

Understand the role of internal marketing and communications.

Answered: 1 week ago