Financial calculator program design
In the previous chapter, we took the loan calculation that used doubles and changed it to use BigDecimal
. We will continue to use this calculation plus two additional ones. One is a savings goal, whereby you indicate how much you wish to save, what the expected interest rate will be, and the number of months in which you wish to reach your goal. The second is the future value, whereby you can determine the amount of money you will have after saving the same amount for a specific number of months at an expected interest rate.
We will use the same data class and business class from the previous chapter. To the business class, we will add the two new calculations. We will not go over the new calculations in this chapter, as you can see them in the chapter’s source code. For now, we will consider the GUI.
The application will present the user with three choices for the calculation. We want a single form into which we can enter the three...