Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Program to create a table containing a customized loan amortization table. Your program will prompt the user to enter the amount borrowed (the

image text in transcribed
Write a Program to create a table containing a customized loan amortization table. Your program will prompt the user to enter the amount borrowed (the principal), the annual percentage rate of charge (APR) that describes the annual interest rate (format: 5.05 is 5.5%), and the number of monthly payments (n). To calculate the monthly payment, use the following formula: payment = iP/1 - (1 + i)^-n where P is the initial principal amount i is the monthly interest rate (1/12 of the APR) n is the total number of payments(payment periods) Note that this payment must be rounded to the nearest cent. After the payment has been rounded to the nearest cent, the program will create a table that looks like the following. Sample Output: Principal: 1000.00 Annual Interest Rate: 9.00 Tens in month: 6 Monthly Payment: exist171.07 Payment Interest Principal Balance 1 exist7.50 exist163.57 exist836.43 2 exist6.27 exist164.80 exist671.63 3 exist5.04 exist166.03 exist505.60 4 exist3.79 exist167.28 exist338.32 5 exist2.54 exist168.53 exist169.79 6 exist1.27 exist169.79 exist0.00 Final Payment: exist171.06 Each month, part of the payment is applied to tire interest and tin- rest is applied to the principal. Because the payment and each month's interest rate are rounded the final payment will be a bit different and must be calculated as the sum of the final interest payment and the final principal balance

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

Step: 3

blur-text-image

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

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

Students also viewed these Databases questions

Question

d. What language(s) did they speak?

Answered: 1 week ago