Question
Kotlin Mortgage Calculator using Android Studio - NOT JAVA Create an app that will accept inputs related to a mortgage and output the monthly cost
Kotlin Mortgage Calculator using Android Studio - NOT JAVA
Create an app that will accept inputs related to a mortgage and output the monthly cost and amortization table. The app will have two Activities and the amortization table will be in a recycler view on the second activity.
First Activity
-
The UI will contain Years, APR, Estimated Escrow, and Loan Amount Fields
-
The user will be allowed to select from 3 different ranges for year: 15, 30, and 40
-
The user will be allowed to input or select from a range, a valid APR percentage
-
The number must be no more than 3 decimal places (4.865% for example).
-
The field must only accept numbers for the input (remember!! Users can connect a keyboard to
their devices!!)
-
You may elect to specify a set selection range of todays rates (drop down list as it were
instead of the user inputting into the field with the keyboard)
-
-
The user will be allowed to insert a monetary value in the escrow field
1. Must be a valid number
2. Must follow currency rules (no more than 2 decimal places allowed)
-
The user will be allowed to insert a monetary value for the loan amount
1. Must be a valid number
2. Must follow currency rules (no more than 2 decimal places allowed)
-
The user will be allowed to press a button to calculate the loan payments and amount
-
When this button is pressed, it will start the next activity showing the amount and amortization table
-
The button should not be press-able unless all necessary information is provided
-
-
The user will be allowed to press a button to reset the screen to either clear all fields or reset
them back to an initial state if desired
Second Activity
-
The interface will display the monthly payment statically at the top or bottom of the screen (it must always be visible)
-
The amortization table will show the change each month (each row) and contain several values: 1. Remaining loan amount left to pay 2. Amount of payment being applied to principal 3. Amount of payment being applied to interest
4. Amount of payment being applied to escrow
(each row should contain these 4 data points)
-
The amortization must show all months for the selected number of years 1. 15 year will show 180 rows 2. 30 year will show 360 rows 3. 40 year will show 480 rows
-
The data in the amortization table must be accurate
-
The data is in currency and therefore should only ever display at most 2 decimal places
-
The loan amount should end at 0.00 and NOT go negative on the last payment
-
General Requirements
1. The application should Compile
2. The application should not crash
3. The application should separate the code into different files appropriately (following the Kotlin Coding Conventions - Source Code Organization found here (Links to an external site.))
4. The content should fit on the screen properly
5. The application is coded in Kotlin (automatic 0 given for Java)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started