Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I just want to remind you that all output formatting is done with fstrings. You should not be needing to use tabs (t) in programs.

I just want to remind you that all output formatting is done with fstrings. You should not be needing to use tabs (\t) in programs.
image text in transcribed
image text in transcribed
2) (amoritization.py) In assignment #2, you created a program to calculate the monthly payment for a loan, given the starting amount, annual interest rate (APR) and term (in years). An amortization table displays the monthly interest paid and resulting principal due over the course of the loan. You will create an amortization table for the values provided by the user. To accomplish this for each month, take the remaining principal due and multiple by the annual interest rate - this is the interest that would be due over the course of a year. Divide by 12 to find the interest due this month. The payment (calculated in the first step), is first applied to this interest due, and the remaining amount is applied to principal, You are to write a program that prompts the user for initial loan amount, APR and term, all validated to be positive. The starting amount and APR can be decimal values; the term is a whole number of years. Produce an amortization schedule for all months of the loan. For each month, indicate the month number, the interest paid for the month, the cumulative interest to date and the remaining principal. In the provided example, the user takes a loan for $25,000 at 5% interest for a term of 4 years. The monthly payment would be $575.73. The interest in the first month would be annual interest divided by 12 months 25,500 5/100/12 = $104.17. The remaining amount applied to the principal would be $575.73 - $104.17 $471.56, bringing the principal due down to $24528.44. For subsequent months, the new principal value is used. Use a while loop to validate all input values to be positive. Use a forloop to print the table. Original loan amount? 25000 Annual interest rate? 5 Years? 4 Payment is $ 575.73 Month Interest Cumulative Principal this month Interest 104.17 104.17 24528.44 102.20 206.37 24054.91 100.23 306.60 23579.41 98.25 404.84 23101.92 96.26 501.10 22622.45 94.26 595.36 22140.98 7 92.25 687.62 21657.52 90.24 777.86 21172.02 88.22 866.07 20684.50 10 86.19 952.26 20194.96 11 1036.40 19703.37 82.10 1118.50 19209.74 13 80.04 1198.54 18714.05 14 77.98 1276.52 18216.30 15 75.90 1352.42 17716.47 73.82 1426.24 17214.56 71.73 1497.96 16710.55 18 69.63 1567.59 16204.45 19 67.52 1635.11 15696.24 20 65.40 1700.51 15185.91 21 63.27 1763.79 14673.46 22 61.14 1824.93 14158.87 59.00 1883.92 13642.13 56.84 1940.76 13123.24 25 54.68 1995.44 12602.19 52.51 2047.95 12078.97 27 50.33 2098.28 11553.57 48.14 2146.42 11025.98 84.15 JOUNOU UNOJOWN 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45.94 43.73 41.52 39.29 37.06 34.81 32.56 30.29 28.02 25.74 23.45 21.15 18.84 16.52 14.19 11.85 9.50 7.14 4.77 2.39 2192.36 2236.10 2277.61 2316.91 2353.96 2388.77 2421.33 2451.63 2479.65 2505.39 2528.84 2549.99 2568.82 2585.34 2599.53 2611.37 2620.87 2628.01 2632.77 2635.16 10496.19 9964.20 9429.98 8893.55 8354.87 7813.95 7270.78 6725.35 6177.64 5627.65 5075.37 4520.79 3963.89 3404.68 2843.14 2279.25 1713.02 1144.43 573.46 0.12 45 46 47 48

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

More Books

Students also viewed these Databases questions