{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Midterm 2 Solutions 07'

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

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

Grade for… Points on Midterm 2 81 Points on NutsAndBolts 27 Points on YearsToDouble 29 Points on DeepestPoint 25 <Ryan Michael Emmorey>

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

View Full Document
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 First row & column copied correctly 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] [sortedSal, ndx] = sort(Employees(:, 2)); sortedID = Employees(ndx, 1); RankedSalary = [sortedID sortedSal]; % ========================= % PART C % SimEqu = [2.8534; 3.3298; 0.3560] A = [2 5 -1; 10 -12 4; 3 0 -10]; B = [22; -10; 5]; SimEqu = A\B; % Or, equivalently,
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern