CS 1: Midterm 1

See the PDF.

CS 1: Homework 3 – Trutilities – due before October 20

See the PDF. You’ll need to Team / Pull… from the template repository to get the SpecChecker.

CS 1: Lecture 14 – Logical Operators

Dear students, Our computer can now ponder our data. It can examine order and equality, two operations at the root of all decision making. Before we sign up for something, we ask ourselves if the benefit exceeds the cost. We compare two brands of pasta on price and weight. We scan the details of our […]

CS 148: Lab 5 – More Methods

Welcome to lab 5! 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. Checkpoint 1 Person A types. You’ve seen Practice-It!, […]

CS 1: Lecture 13 – Casting and Relational Operators

Dear students, Today we close out our focused discussion on methods. They will never go away; we will continue to write them all throughout the semester. But I want to tie up a few loose ends having to do with types. We will begin with a little science experiment to illustrate the need (or lack […]

The Before Loop

My students last week invented the “before” loop. We won’t talk about loops in class for a while yet, but they waste no time in accidentally spawning them in unexpected ways. See their latest cleverness:

CS 396: Meeting 4 – Interviewing

Dear students, With the Career Breakfast and Fair behind us, we enter this nebulous period of waiting for a callback. If we get one, we’ll be in the position of talking at length about ourselves and the company we are courting. This kind of conversation is unfamiliar and universally awkward. We call it the interview. […]

CS 1: Lecture 12 – Testing and Graphics

Dear students, Is there anything like charAt for integers? For instance, given a number and an “index” representing the place, can we get back the digit at that place? Not exactly, but there’s nothing stopping us from writing our own method to accomplish this task! But before we do that, let me share with you […]

Eclipse Shortcuts

Eclipse has a lot of keyboard shortcuts and I know hardly any of them. But my students still think I’m an ace. These are the ones I do use on a regular basis, shared so that my students can be aces: Automatically add import statements to classes that live in faraway packages with Control-Shift-O or […]

CS 145: Lab 4 – More Methods

Welcome to lab 4! 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. Checkpoint 1 Person A types. You’ve seen Practice-It!, […]