Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need only part 2 in c++ write a program that will compute a monthly payment. This assignment is broken up into 2 parts. You
I need only part 2 in c++
write a program that will compute a monthly payment. This assignment is broken up into 2 parts. You are to have, at least, 1 function ( other than main() ) in both programs. The function(s) must be referenced by the main program.
House (or Car) payment program. In this assignment, you are to write a program that will compute a monthly payment. This assignment is broken up into 2 parts. You are to have at least, 1 function (other than main() in both programs. The function() must be referenced by the main program Part 1 The formula for computing the monthly payment for a long term loan is shown below. P. mir Payment = P mir y Principal interest rate for 1 month number of years The input to the program (from the keyboard) is the Principal (P-708ee), the yearly interest rate (yir=9.5) and the number of years (y=38). The output is a line exactly like the following: Principal 70900.ee Interest Rate 9.5820 Years 30. Payment 588.60 To solve this problem you can (if you want to then compute each part. break it up into parts, The following table shows the calculations that have to be performed, along with values for a $70, see loan at 9.5% over 30 years. You can use these numbers to check your program. yir -- - mir - 1.007916 1200 a = 1 + mir 1.007916 992145514 360 C = 12 y 058497109 el.d 94150289 554.12 payment . . 588.60 Part 2 You are to generate and print the first 8 rows and the last 8 rows of a complete amortization table, very similar to the one shown below (including the dashes). You are to have (and reference), at least, i function (other than main) in your program. Sample output: Principal 70020.ee Interest Rate 9.5e9e Years 38. Payment 588.68 Month Pay Total Paid Monthly Interest Principal Paid Total Principal Paid Remaining Balance 1 554.17 553.89 553.62 553.34 3 4 5 6 588.68 588.68 588.68 588.68 588.68 588.68 588.68 588.60 588.68 1177.29 1765.79 2354,39 2942.99 3531.59 4128.19 4708.78 34.43 34.me 34.98 35.26 35.53 35.82 36.10 36.39 34.43 69.14 184.11 139.37 174.se 210.72 246.82 283.2e 69965.57 69930.86 69895.89 69860.63 69825.ie 69789.28 69753.18 69716.80 553.86 552.78 552.se 8 552.21 353 588.68 354 588.60 355 588.68 356 588.68 357 588.60 358 588.60 359588.60 360 588.60 207775.07 288363.67 208952.27 209548.87 210129.47 218718.06 211306.66 211895.26 35.98 31.61 27.20 22.76 18.28 13.76 9.21 4.62 552.61 66887.25 556.99 66564.24 561.49 67125.64 565.84 67691.48 570.32 68261.se 574.84 68836.64 579.3969416.83 583.97 583.97 zeeee.ee 3992.75 3435.76 2874.36 2308.52 1738.20 1163.36 583.97 Notes: Generate the table so that you would get valid output for a 30 year loan or a 5 year loan. Formatting in C++ is rather involved. You want to make sure that the periods (in the numbers) line up. Before you start printing, you should specify the number of decimal places to be printed. You should also specify that the numbers should be printed in fixed format. You only have to do this once. coutStep 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