PrepAway - Latest Free Exam Questions & Answers

You need to adjust the loanRate value to meet the requirements

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 5 and the loanAmount value is 4500, the loanRate must be set to 6.5
percent.
You need to adjust the loanRate value to meet the requirements.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Replace line 15 with the following code segment:
loanRate = 0.065m;

B.
Replace line 07 with the following code segment:

loanRate = 0.065m;

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

D.
Replace line 04 with the following code segment:
decimal loanRate = 0.065m;

One Comment on “You need to adjust the loanRate value to meet the requirements


Leave a Reply