Compound Interest Calculation 4.0

Source: Internet
Author: User

Test module (Scene)

Test input

Expected results

Run results

Bug tracking

Calculate compounding

(principal, interest rate, duration)

1

(10000, 0.05, 5)

12762.82

12762.82

2

(-100, 0.05, 5)

Principal input Error Please re-enter

Principal input Error Please re-enter

3

(10000,-0.05, 5)

Interest rate input Error please re-enter

Interest rate input Error please re-enter

4

(10000,0.05,-20)

Time limit input Error please re-enter

Time limit input Error please re-enter


Calculate Principal

(Benli and, interest rate, term)

1

(10000,0.05,5)

Simple interest 8000, compounding 7835.26

Simple interest 8000, compounding 7835.26

2

( -10000,0.05,5)

Benli and input errors please re-enter

Benli and input errors please re-enter

3

(10000, 0, 5)

Interest rate input Error please re-enter

Interest rate input Error please re-enter

4

(10000, 0.05,-5)

Time limit input Error please re-enter

Time limit input Error please re-enter

Calculation life

(Benli and, principal, interest rate)

1

(10000,8000,0.05)

5

5

2

(0,8000,0.05)

Please re-enter the principal and input errors

Please re-enter the principal and input errors

3

(10000,0,0.05)

Principal input Error Please re-enter

Principal input Error Please re-enter

4

(10000,8000,0)

Interest rate input Error please re-enter

Interest rate input Error please re-enter

Detailed procedures on GitHub

This time to write the program I got a lot of classmates help ~ I changed the original C language to Java special feeling students suggestions and proposals

It's really a lot easier to write on Java, ingenious. What kind of program is easier for you to write success

Compound Interest Calculation 4.0

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.