teaching machines

CS 145 Homework 6 – due before November 30

See the PDF.

CS 145 Lecture 30 – Higher Dimensions

Agenda what ?s arraylistercise arrays to higher dimensions TODO Read sections 7.3 through 7.5 in the book. Share 2-3 questions or observations on a 1/4 sheet. Start homework 6. Due before November 30. The challenge for the second and final mercy fortnight will involve finishing homework 7 on objects before December 7. The regular due date will be […]

CS 145 Lecture 29 – ArrayList and 2D Arrays

Agenda what ?s program this ArrayList vs. array to higher dimensions TODO Finish homework 5. Note We start with a Program This in two installments: You are an armchair runner. Instead of competing in races, you like to figure out where you would have finished had you actually run. You want to write a method that determines […]

CS 145 Lecture 28 – Array Exercises, Cont’d

Agenda what ?s blackboxes Note Arrays are a really simple idea, but I’d wager that most of my bugs come from code that involves arrays. There are a lot more moving parts. Today, then, we complete a few more array exercises. But let’s get a feel for the problems through some Blackboxes before we reimplement their […]

CS 145 Lab 5 – Arrays

First, if you have checkpoints left over from last lab, get them inspected during the first 15 minutes of this lab. No credit will be awarded past these 15 minutes. Don’t forget to work in pairs! Where possible, please work with someone that you did not work with last week. The exchange of new ideas and […]

CS 145 Lecture 27 – Array Exercises

Agenda what ?s array bingo making digital music TODO Read chapter 7 through section 7.2. Write down 2-3 questions, observations, and sightings of arrays in real life on a 1/4 sheet turned in at the beginning of next lecture. Note In case you haven’t noticed yet, we don’t just jump from new topic to new topic […]

CS 145 Lecture 26 – Birthdays

Agenda what ?s loop until fixed repeated birthdays TODO For an extra credit participation point, check out tryruby.org and work through at least level 5. Write down 2-3 questions, observations, or comparisons to Java or other languages you know. Note Today we introduce an idiom we can use to support a “try again” when an exception happens. […]

CS 145 Lecture 25 – Computer as Factory Worker

Agenda what ?s a siblings histogram arrays counting repeated birthdays TODO Start homework 5, which is due before November 13. It uses the ideas we discuss today. Prepare a question or two to share before tomorrow’s quiz. New topics we’ve covered since the last quiz include loops and conditional statements. Worth a participation point. Note […]

CS 145 Homework 5 – due before November 13

See the PDF.

CS 145 Lecture 24 – Accumulation

Agenda what ?s accumulation pattern Note We continue our discussion of common patterns we see with loops. Today we visit the accumulation pattern, where a loop iterates through a collection and accumulates values in some variable of larger scope. Accumulations tend to look like this: initialize soFar for each item integrate item into soFar end use […]

1 14 15 16 17 18 35