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