CS 145: Lab 3 – Methods
Welcome to lab 3! 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. Work with a partner that you have not […]
CS 1: Lecture 8 – Methods
Dear students, First, let’s a new data type to our repertoire: a random number generator. If I tell you that the name of this type is Random, could you create a new variable that is capable of generating random numbers? You should be able to. We can tell by its capitalization that it is a […]
CS 148: Lab 3 – String and Math
Welcome to lab 3! 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. Work with a partner that you have not […]
CS 1: Lecture 7 – String Cont’d
Dear students, With Strings at our disposal, our programs are going to start to feel human. We can write programs that process and generate words, and that’s pretty amazing! But we need more practice using them before we determine the authenticity of Shakespeare’s works. Let’s play some Stringo! Generate a String of five characters. Use […]
CS 396: Meeting 2 – Networking
Dear students, Today Alyssa from Career Services will help us prepare for the upcoming career fair. I’d like to take a moment to say that you’ve got an awesome opportunity here. I had nothing like this when I was an undergraduate, and I spent many hours sending emails to potential employers and never hearing back. […]
CS 1: Lecture 6 – String
Dear students, If this class was a book, the chapter we’re in right now is Computer as Calculator. I’d mentioned that computers got their start in the world of mathematics. Why exactly did computers start with the mathematicians? The good news is that numbers are not the only thing that computers are good at crunching. […]
CS 145: Lab 2 – Math and String
Welcome to lab 2! 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. Work with a partner that you have not […]
CS 1: Lecture 5 – Math Methods
Dear students, Today we introduce the Math class. This class has a bunch of pre-written recipes for computing various mathematical operations. We can see what it all provides by looking at its documentation. I usually find this documentation by searching java ClassName in my favorite search engine. Let’s explore the methods that the Math class […]
CS 148: Lab 2 – Scanner and Math
Welcome to the lab 2! Our goal today is to become more familiar with user interaction and the various mathematical operations. Checkpoint 1 Person A types. Start by creating a package in your Eclipse project named lab02. Let’s write a program that prompts the user for two colors and mixes them together. This sort of […]