Midterm 2 Solutions 07'

Midterm 2 Solutions 07' - Grade for. Points on Midterm 2...

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

View Full Document Right Arrow Icon
Grade for… Points on Midterm 2 81 Points on NutsAndBolts 27 Points on YearsToDouble 29 Points on DeepestPoint 25 <Ryan Michael Emmorey>
Background image of page 1

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

View Full DocumentRight Arrow Icon
NutsAndBolts Category Specific Point PART A 2 2 Indexing done correctly 3 3 Correct array entries changed 3 3 PART B Salaries sorted correctly 3 3 ID numbers re-ordered accordingly 3 2 PART C Coefficient arrays built correctly 4 4 4 4 PART D 3 3 Loop used over other array entries 2 Other entries computed correctly 3 PART E 2 2 Correct number of loop iterations 2 2 Correct formula 2 1 Correct output sum 2 TOTAL this question 40 27 Points Available Points Awarded find used correctly RankedSalary array built correctly Left-divide (or rref ) used correctly for loop used % ========================= % PART A % A = [1 2 3]; B = [4 1 6]; New A = [-100 2 -100] locs = find(A < B); A(locs) = -100; % ========================= % PART B % Employees = [1 50000; 2 47000; 3 33000; 4 72000; 5 100000]; % Output = [3 33000; 2 47000; 1 50000; 4 72000; 5 100000]
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/19/2008 for the course CSE 131 taught by Professor Sticklen during the Spring '08 term at Michigan State University.

Page1 / 9

Midterm 2 Solutions 07' - Grade for. Points on Midterm 2...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online