A summary of compounding calculators and stock investments

Source: Internet
Author: User

These two experiments were written in the Eclipse tool and the Java language, and 70 lines of code were written when the compounding calculator was written.

On the basis of the compound interest calculator to modify and add functionality, the final stock investment program is a total of 82 lines of code.

The compounding calculator is expected to take 3-4 hours, but it actually took about 5 hours, probably because the first

When there are many Java languages forget how to write, so it took more time to review back to the previous things, in fact

Writing the compound Interest Calculator program is also not very difficult, as long as the Java output input language to understand how to write and calculate the formula of compound end value,

Then the problem becomes much simpler; the process of investing in stocks I was supposed to spend about 3 hours writing,

It only took one hours to finish, because it was already well written in the interest of compounding.

Plus this time it's just that the formula is a little different and the results are different, the others are almost the same, so

This time the speed of completion is relatively fast. Through these two experiments, I learned how to write about compounding calculators and stock investments.

Program, but also mastered the use of java input a sentence and output results, may have just begun is a bit difficult, but through

Asked the students and Internet search related knowledge, and finally I succeeded in implementing the program I want to write out.

A summary of compounding calculators and stock investments

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.