Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please also show the file being executed if possible. You must use at least 1 function besides main. Any doubles that you print must have

image text in transcribedimage text in transcribedimage text in transcribedPlease also show the file being executed if possible.

You must use at least 1 function besides main. Any doubles that you print must have only 2 numbers after the decimal. Match the output format in the textbook for your first run Read in the 3 inputs: principal, annual interest rate, and number of payments. NEW REQUIREMENT You will-use the cemmandline to provide the 3 numbers: principal annual interest-rate, number of payments NO LONGER A REQUIREMENT Make 2 runs. Use as input: principal 1000, annual interest rate 9.0, number of payments 6 (from book) principal 12000, annual interest rate 4.14, number of payments 12 (used car, for 1 year) Print to the screen - no file output Go online and use a loan calculator to find out if your answer is right for second run. The TAs will do the same. You may be off by no more than 10 cents. This is acceptable, but no more than that. [Program Designe in C] 3. Write a program to create an output file containing a customized loan amort zation table. Your program will prompt the user to enter the amount borrowed (the principal), the annual interest rate, and the number of payments (n calculate the monthly payment, it will use the formula from Programming Project 1 in Chapter 3. This payment must be rounded to the nearest cent After the payment has been rounded to the nearest cent, the program write to the output file n lines showing how the debt is paid off. Each moi n will th rt of the payment is the monthly interest on the principal balance, an rest is applied to the principal. Because the payment and each month's inter- est are rounded, the final payment will be a bit different and must be calcu- lated as the sum of the final interest payment and the Here is a sample table for a $1,000 loan borrowed at a 9% annual interest rate and paid back over 6 months. d the final principal balance Principal Annual interest $1,000.00 9.0% Payment Term $171.07 6 months Principal Principal 163.57 64.80 166.03 167.28 68.53 69.79 Payment Interest 7.50 6.27 5.04 3.79 2.54 1.27 Balance 836.43 671.63 505.60 338.32 169.79 4 0.00 Final payment $171.06

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

Beginning PostgreSQL On The Cloud Simplifying Database As A Service On Cloud Platforms

Authors: Baji Shaik ,Avinash Vallarapu

1st Edition

1484234464, 978-1484234464

More Books

Students also viewed these Databases questions

Question

b. Explain how you initially felt about the communication.

Answered: 1 week ago

Question

3. Identify the methods used within each of the three approaches.

Answered: 1 week ago

Question

a. When did your ancestors come to the United States?

Answered: 1 week ago