✔: Midterm 2: Free Response
✔: MP7
Late: Midterm 1 (Second Chance)
Needs gradebook display
Final Project
Expected: Today
Remaining Regrades
Expected: Today
Tuesday, May 12
8:00am - 11:00am
40-50 multiple choice questions
3-5 free response questions
Comprehensive
(JavaScript, Excel, basic d3.js)
Lecture Review
In-lecture on Wednesday
TA Review
1:00pm - 3:00pm on Thursday (Reading Day)
1000 Lincoln Hall
Regular Office Hours
Lab/office hours continue during exam week until exam day
var square = function(num) { var result = num * num; return result; }
var fun = function(a, b) { if (a > b) { return a * b; } else { return a / b; } }
var r = fun(4, 2);
var fun = function(a, b) { if (a > b) { return a * b; } else { return a / b; } }
var r = fun(2, 4);
var sum = function(a) { var total = 0; for (var i = 0; i < a.length; i++) { total += a[i]; } return total; }
=SUM(A1:A7)
var one_oh_five = function(a) { var t = 0; for (var i = 0; i < a.length; i++) { var x = a[i]; if (x < 10) { t += x; } else if (x < 30) { t += x * 0.8; } else { t += x * 0.5; } } return t; }
var one_oh_five = function(a) { var t = 0; for (var i = 0; i < a.length; i++) { var x = a[i]; if (x < 10) { t += x; } else if (x < 30) { t += x * 0.8; } else { t += x * 0.5; } } return t; }
var r = one_oh_five([100, 10, 100]);
var one_oh_five = function(a) { var t = 0; for (var i = 0; i < a.length; i++) { var x = a[i]; if (x < 10) { t += x; } else if (x < 30) { t += x * 0.8; } else { t += x * 0.5; } } return t; }
var r = one_oh_five([100, 10, 100]);
var sumifs = function(sum_array, sum_criteria, criteria) { var total = 0; for (var i = 0; i < sum_array.length; i++) { if ( criteria( sum_criteria[i] ) == true ) { total += sum_array[i]; } } return total; }
sumifs( [1, 2, 3, 4, 5], [10, 15, 20, 25, 30], function (d) { return (d > 20); } );
var num = 43; // Number var s = "Hello"; // String var b = true; // Boolean // Function: var f = function(...) { ... }; // Array (of Strings): var a1 = ["a", "b"]; // Array (of Numbers): var a2 = [37, -375];
var person = { fname: "Wade", lname: "Fagen", office: "2215 SC", areacode: 217 };
var x = person.fname; // "Wade"
SUM, SUMIFS COUNT, COUNTIFS AVERAGE, AVERAGEIFS MAX, MIN
VLOOKUP INDEX, MATCH
RAND