70-483 question 196 discussion

answered

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;
Created 1 year, 1 month ago by revinepreet

revinepreet

This should be D.

ehcomel

No. LoanAmount value being greater than 5000, the condition is not passed. C is correct.

niouptcosubc@outlook.fr

Ehcomel wins. There were a couple of those "x<var1<y ANDALSO var2<z" already.