All pastes #345534 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-02-08 16:31 UTC
rendered paste body
Mod 2. Change the loan calculation statement to a method call statement.
a. Currently the program calculates the property's monthly loan payment by using the annual
interest rate, the loan amount and the number of years for the loan in the calculation given.
Comment out this calculation.
b. You need to replace this monthly payment calculation statement with a statement that calls the
method calculatePayment and passes the appropriate parameters to the method.
c. You must pass four parameters to the calculatePayment method: (1) property cost (type
double), (2) down payment (type double), and (3) number of years (integer), and (4) type of
property (type char).
d. The calculatePayment method is described in the next numbered item below.