Question: Description Create a program that calculates the interest on a loan. Console Interest Calculator Enter loan amount: 520000 Enter interest rate: 5.375 Loan amount: $520,000.00
Description Create a program that calculates the interest on a loan. Console Interest Calculator Enter loan amount: 520000 Enter interest rate: 5.375 Loan amount: $520,000.00 Interest rate: 5.375% Interest amount: $27,950.00 Continue? (y): y Enter loan amount: 4944.5 Enter interest rate: 1.3 Loan amount: $4,944.50 Interest rate: 1.300% Interest amount: $64.2 Continue? (y): n Bye! Specifications The formula for calculating the interest amount is: loan amount (interest rate /100) Use the Decimal class to make sure that all calculations are accurate. It should round the interest that's calculated to two decimal places, rounding up if the third decimal place is five or greater The interest rate that's displayed can have up to 3 decimal places. Assume that the user will enter valid decimal values for the loan amount and interest rate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
