basically, i need to: (a) print a blank (empty) line and the message:\"Part I:\"
ID: 3608179 • Letter: B
Question
basically, i need to:(a) print a blank (empty) line and the message:"Part I:" and ablank line.
(b) compute z = x * cosh(y) enter the values of x and y from thekey board.
print the values of x, y, and z using
printf("%g * cosh(%g) =%g ", x, y, z);
(c) print a blank (empty) line and the message:"Part II:" and ablank line.
(d) create a table for monthly payments of auto loans.
For annual interest rates: annual_rate = 0.050 to 0.080 with
the increment of 0.0025, compute by using a for-loop the
monthly payments for 3-year, 5-year, and 7-year loans.
Print the results in a table on the screen using %12.4f for
the annual interest rates and %15.2f for the payments.
i know im supposed to use the formula forequal-monthly-payments:
month_pay = price * i* (1 + i)^n/((1 + i)^n - 1)(2.4)
where i= annual_rate/12. (monthly interest rate),
and n = the total number of payments.
To compute (1 + i)^n use pow(1.0 + i, (double)n)
can anyone help?
Explanation / Answer
ok, i thought i figured it out but didn't.... so help would still be appreciated. thanks.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.