Hi Balbir:
Basically, the question says 'amortization table will be used to calculate the interest and principle amounts to apply against the balance'. So both 'interest and principle amounts' will be calculated by calling methods of 'amortization table'. On second thought, I noticed 'apply' keyword. So it looks like b) and d) are right.
Thanks,
Don
Originally posted by Balbir Singh:
Given the requirement statement below, which of the following public methods would be used in a related sequence diagram?
When a mortgage payment is received, the appropriate amortization table will be used to calculate the interest and principle amounts to apply against the balance.
a) aBalance.subtract( anAmount )
b) anAmortizationTable.calculateInterestUsing( aPayment )
c) anAmortizationTable.apply( aPayment )
d) aMortgage.apply( aPayment )
Multiple Select - Please select all of the correct answers (this question has 2 correct choices).
I answered b and d. Since a) sounds rubbish and c) doesnot fit in the context as the principal amount is to be applied against the balance for a I]mortgage[/I] payment.
Any comments?