Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please implement a single-activity Android application using a handful of basic controls. The goal of the assignment is to become familiar with the use of

Please implement a single-activity Android application using a handful of basic controls. The goal of the assignment is to become familiar with the use of Android Studio, basic UI elements, and the Android documentation.

View Layout: The view will have the following elements:

Amount Borrowed: This will be a EditText into which the user will enter the amount to be borrowed as a floating-point value (e.g., "1000.00").

Interest Rate: This will be a SeekBar ranging from 0.0 to 20.0, indicating the annual percentage rate of the interest. This value should start at 10.0.

Loan Term: This will be a RadioGroup with the choices 15, 20, and 30, representing the number of years of the loan.

Taxes and Insurance: This will be a CheckBox that allows the user to select whether taxes and insurance are to be included in the monthly payment.

Calculate: This will be a Button that, when pressed, will calculate the user's monthly payments based on the values entered.

Monthly Payment: This will be a TextView that displays the monthly payment.

Calculation: For interest rates other than 0%, the monthly payment can be calculated as:

image text in transcribed

where:

P = Principal (the amount borrowed)

J = Monthly interest in decimal form (annual interest rate / 1200) N = Number of months of the loan

T = Monthly taxes and insurance, if selected (0.1% of the amount borrowed) For interest rates of 0%, the monthly payment is simply: M = (P/N) + T

Advice

The Java and Android SDK documentation is your friend. You will need it to determine how to:

-create a String with the desired formatting

-write a value to a label

-Read a value from a EditText

-Convert an String to a float

-Read a value from a slider

-Determine which radio of a radio group is selected

-Determine if a CheckBox is checked

Other Requirements

The app shouldn't crash on user input errors, such as if no values are specified and the user clicks

the Calculate button.

M = (P (P * ( (1-(1+,-v)) + 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+what kinds of policies and practices should be developed?

Answered: 1 week ago