teaching machines

CS 145 Lecture 24 – Hello, Arrays

Agenda what ?s the birthday problem numbering our data arrays Program This You, being a degree-seeking human, have an insatiable appetite for trivia. You wonder how many birthdays are in the room. Does each person have a unique birthday? Was everybody born on just one day? Or is the answer somewhere in the middle? How […]

CS 145 Lecture 23 – Loops V

Agenda what ?s what does this do? blackboxes loops in other languages TODO Share a quiz question before the quiz in Monday’s lab. Pretend that your question might actually appear in the quiz: make it short, direct, and on topic. Worth a 1/4 sheet. What Does This Do? Blackboxes Blackbox 7 Blackbox 6 Blackbox 8 […]

CS 145 Lecture 22 – Loops IV

Agenda what ?s program this inverting a BufferedImage blackboxes TODO No Weekly Outside Problem this week. Mercy Fortnight expires before Friday. Blackboxes Blackbox 7 Blackbox 6 Blackbox 8 Program This Code GetThird.java Image.java Inverter.java Haiku

CS 396 Lecture 8 – Target

Agenda what ?s Anders Petersen of Target TODO Share two observations or questions you took away from our discussion with Target. Research our next speaker: 3M. Prepare two questions you might ask Ben Zimmer and company. Turn these in on one 1/4 sheet at the beginning of next class.

CS 145 Lecture 21 – Image Manipulation

Agenda what ?s working with images program this Program This Grayscale images are two-dimensional grids of pixels. Each pixel is represented as an int in [0, 255], with 0 being black and 255 being white. Imagine a grayscale image that can be generated with an algorithm. Many patterns and shapes can be produced by algorithms. Write […]

CS 145 Lecture 20 – For Loops

Agenda what ?s alphabet fillDown indexOf program this TODO Start homework 4, which is due before October 31. This is a full homework. You will want to use the full two weeks. Read sections 5.1, 2.3-2.4, and 4.2. Turn in next lecture a 1/4 sheet with questions, observations, and examples of algorithmic repetition you see […]

CS 145 Lab 5 – Loops

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 […]