Compound interest. Because of interest money compounds as time passes—we start earning interest on our interest. This can be computed with a Java method.
Monthly, quarterly, yearly. We can compound interest based on different schedules. And with a compound interest method, we can see the difference between these schedules.
A method. In researching compound interest, I found the formula on a university's page. I translated the formula into a Java method. We use addition, division, multiplication, and Math.pow.
Computing interest. In volatile markets, interest rates may seem less important. But the fundamental way interest compounds upon itself is core to all simulations.
Dot Net Perls is a collection of tested code examples. Pages are continually updated to stay current, with code correctness a top priority.
Sam Allen is passionate about computer languages. In the past, his work has been recommended by Apple and Microsoft and he has studied computers at a selective university in the United States.
This page was last updated on May 23, 2023 (edit).