u hv saved $500 to use as a down payment on a car. b4 beginning ur car shopping, u decide to write a program to help u figure out what ur monthly payment will be, given the car's purchase, the monthly interest rate and the time period over which u will pay bek the loan. the formula for calculating ur payment is payment=ip/[1-(1+i),-n] where P=principle(the amount you borrow) i=monthly interest rate(1/2 of the annual rate) n=total number of payments ur program should prompt the user for the purchase price, the down payment, the annual interest rate and the total number of payments(usually 12,24, or 36).
it shud then display the amount borrowed and the amount payment including a dollar sign and 2 decimal places