You had a client who wanted a loan application, further details about the application design and work principles are below. Unfortunately your colleague Helen did some really bad work. It is now your job to fix this app, so that it will work the way the client wants it to. While fixing the issues add a detailed report about what was wrong and how you fixed it in your github readme, in the application code add comments that trace back to the readme.
Example in code: // Issue 1
Example in readme: Issue 1: method pay was missing, added it because the application won't calculate sums without it.
This application lets user calculate the payment on a loan. Every time the loan is an annuity loan. In the top two fields one must be able to enter the borrowing costs and the loan principal respectively, while in the next two fields able to enter the number of years for the repayment of the loan and the number of terms per year. In the last field user must be able to enter the interest rate, which is entered as the interest rate in percent per year. When clicking Calculate button, the program must calculate the term payment and show it in the field after text Payment, which is a read-only EditText.
Before calculating the program must validate data:
- The cost must not be negative
- The loan must be positive
- The number of years must be an integer between 1 and 60 (both inclusive)
- The number of terms per years must be an integer between 1 and 12 (both inclusive)
- The interest rate must be positive and less than 50
In the case of an error, the program must display an error message in the form of a simple Toast.
If user clicks on Amortization, the program must open another activity that shows an amortization plan: