You have saved $500 to use as a down payment on acar. Before beginning your car shopping, you decided to write a program to help you figure out what your monthly payment will be, given the car’s purchase price, 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 (amount you borrow) I=monthly interest rate (1/12 of the annual rate) n=total number of payments Your program should prompt the user for the purchase price, the down payment, the annual interest rate and total n
What language are you programming in?
C++ using Microsoft Visual Studio
Unfortunately, I'm not fluent in C++ so I can't help you much but I found a similar problem for calculating monthly car payments...etc. Here's the link: http://www.dreamincode.net/forums/topic/160307-monthly-car-payment/
okay thanks
You're welcome!
but what is the real solution ? ?
damn it .. i wann it in C language ;)
Join our real-time social learning platform and learn together with your friends!