One compound interest calculation of software engineering experiment

Source: Internet
Author: User

This time I write compounding, I use Java to write, there are two functions, one is to calculate the compounding end value based on the principal, and the second is to calculate the required principal based on the final value of compounding, at which point I use two formulas

Enter the final value of the principal: S = P * MATH.POW (1.0 + I, n) that is compounding the final value = Principal * (1+ interest rate) ^ Interest rate acquisition Time

Enter final value for Principal: P = S * MATH.POW (1.0 + I,-n) i.e. required principal = Compound End value * (1+ interest rate) ^ (-interest rate acquisition time)

Running the results in Java is as follows:

1, enter the principal to find the final value

2, enter the final value to seek the principal

First enter 1 in the first input box, and then select the direction of calculation, and then in the corresponding known data input box input, the final result will be displayed in the corresponding result box, to complete the bidirectional evaluation.

One compound interest calculation of software engineering experiment

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.