S08T2A_Koofer

# S08T2A_Koofer - EngE1114 Test 2 Spring 2008 Page 1 of 9...

This preview shows pages 1–3. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
EngE1114 Test 2 Spring 2008 Page 2 of 9 Multiple Choice Questions (4 points each) 1. Consider an auto loan company where monthly interest (int) is charged based on the customer’s credit rating (CR). The loan company charges 3% if the credit rating is greater than 700, 6% if the credit rating is 600 to 700, and 10% if the credit rating is less than 600. Which of the following partial codes can be used to correctly determine the interest rate (in decimal form)? CODE 1: CODE 2: CODE 3: CODE 4: if CR > 700 int = 0.03; elseif CR >= 600 int = 0.06; else int = 0.1; end if CR >=600 if CR >700 int = 0.03; else int = 0.06; end else int = 0.1; end if CR > 700 int = 0.03; end if CR >= 600 int = 0.06; else int = 0.1; end if CR > 700 int = 0.03; elseif CR < 600 int = 0.1; else int = 0.06; end 1. 1 2. 2 3. 3 4. 4 5. 1, 2, 3 6. 1, 4 7. 1, 2, 4 8. 1, 2, 3, 4 2. Which line of code, used in a MATLAB script file, would call the function below and store the
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 07/05/2010 for the course ENGE 1114 taught by Professor Twknott during the Spring '06 term at Virginia Tech.

### Page1 / 9

S08T2A_Koofer - EngE1114 Test 2 Spring 2008 Page 1 of 9...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online