CS 1: Lecture 34 – Volume Slicer
Dear students, When we last met, we made a slideshow application. This was our first graphical application that we wrote from scratch. We organized the code into two camps: model code and view code. This separation made the model code reusable under many different circumstances. Let’s do all that again today, but in a different […]
College Humor
Office hours was just about over, and the line that normally piles up outside my door had evaporated bit by bit till there was nothing left but a peaceful hallway. But then—footsteps. A student appeared at my door, said she had a joke to share, and then launched a crumpled up piece of paper at […]
Truck++
On our way back from visiting family for Thanksgiving, we found ourselves behind this truck: It’s probably one of those new Tesla trucks, given its builtin navigation buttons.
Husky
A student and I are attaching a bunch of accelerometers to a wooden mannequin. When we pose the mannequin, an Arduino will pick up the new orientation of the limbs and communicate the pose to a Unity game, which will manipulate the corresponding virtual model inside a game. In a sense, the mannequin will be […]
CS 145: Lab 11 – Objects with Objects
Welcome to lab 11! If you have checkpoints from the last lab to show your instructor or TA, do so immediately. No credit will be given if you have not already completed the work, nor will credit be given after the first 10 minutes of this lab. In this lab you will create a bare-bones […]
CS 1: Lecture 33 – Separation of Concerns in Slideshow
Dear students, A primary benefit of object-oriented design is that it helps us organize our programs coherently. We can put code and the data that it regularly processes together into the same chunk. Objects allow for the separation of concerns. Class A can focus on its task, and be very good at it. It can […]
CS 1: Midterm 2
See the PDF.
CS 1: Lecture 32 – Stopwatch
Dear students, As with methods, a primary benefit of object-oriented programming is code reuse. We can create a utility and use it over and over again, in many contexts. We will do just that by designing a Stopwatch class. We will use it to time a few operations: a words-per-minute calculator the amount of time […]
CS 148: Lab 12 – Splatbot
Welcome to lab 12! If you have checkpoints from the last lab to show your instructor or TA, do so immediately. No credit will be given if you have not already completed the work, nor will credit be given after the first 10 minutes of this lab. In this lab you will create a robot […]
CS 148: Lab 11 – ArrayList and Object
Welcome to lab 11! If you have checkpoints from the last lab to show your instructor or TA, do so immediately. No credit will be given if you have not already completed the work, nor will credit be given after the first 10 minutes of this lab. In this lab you will create our own […]