You need to adjust the loanRate value to meet the requi…

You are evaluating a method that calculates loan interest- The application includes the following code segment.
(Line numbers are included for reference only.)

When the loanTerm value is 3 and the loanAmount value is 9750, the loanRate must be set to 8.25 percent.
You need to adjust the loanRate value to meet the requirements.
What should you do?

You are evaluating a method that calculates loan interest- The application includes the following code segment.
(Line numbers are included for reference only.)

When the loanTerm value is 3 and the loanAmount value is 9750, the loanRate must be set to 8.25 percent.
You need to adjust the loanRate value to meet the requirements.
What should you do?

A.
Replace line 04 with the following code segment:
decimal loanRate = 0.0325m;

B.
Replace line 17 with the following code segment:
interestAmount = loanAmount * 0.0825m * loanTerm;

C.
Replace line 15 with the following code segment:
loanRate = 0.0825m;

D.
Replace line 07 with the following code segment:
loanRate = 0.0825m;



Leave a Reply 0

Your email address will not be published. Required fields are marked *