0

Write a C++ program that asks the user to enter the price of a car (real), the down

payment (real) and the number of years for the loan (integer). Calculate and output

the monthly payment (real) of that car. Assume the sales tax rate is 7% and an

interest rate is 9%. Use constant declarations for these rates.

Use the following formulae to perform the calculations:

tax amount = price of car * sales tax rate

total cost of car = price of car + tax amount

borrowed amount = total cost of car ‐ down payment

interest amount = borrowed amount * interest rate

loan amount = borrowed amount + interest amount

monthly payment = loan amount / number of months of loan