Question: Program C 1. You have saved $500 to use as a down payment on a car. Before beginning your car shopping, you decide to write

Program C Program C 1. You have saved $500 to use as a

1. You have saved $500 to use as a down payment on a car. Before beginning your car shopping, you decide to write a function to help you figure out what your monthly payment will be, given the car's purchase price, the monthly interest rate, and the time period over which you will pay back the loan. The formula for calculating your payment is: payment iP 1 (1 + i)^(-n) where P = principal (the amount you borrow) i monthly interest rate ( 1/12 of the annual rate) = total number of payments n Your program should get input data from the user in the main function in this manner: CALCULATE PAYMENT Enter principal: 500.0 Enter annual interest rate: 6.0 Enter number of payments: 24 Your monthly payment is: 22.16

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!