CS 145 Lecture 1 – Introduction
Agenda bios awards what is computer science? Made with Code with Miral Kotb meta grammar ignition computer as calculator haiku Bio What’s your name? Where are you from? What’s the last unassigned book you read? If not computers, what? (Outlawed answers: reinvent them.) TODO Read the syllabus. Install the Java Development Kit, Eclipse, and the […]
CS 145 Lecture 0 – Accessing the JDK, Eclipse, and EGit
In CS 145, we make extensive use of certain software. You’ll need to get access to this software in one of three ways: 1) by installing it on your personal machine, 2) by heading to university computer labs, or 3) by remotely logging in to virtual machines hosted by the university. Installing Installing the software […]
CS 145 – Introduction to Object-oriented Programming
Information Syllabus Enrollment: 90 Lectures Labs Homework Exams
CS 145 – Introduction to Object-oriented Programming
Information Syllabus Enrollment: 47 RSS feed Lectures Homework Labs Exams
CS 145 – Introduction to Object-oriented Programming
Information Syllabus Enrollment: 90 Lecture Homework Labs Exams
CS 145 Final Exam
Exam Test scores Overall scores
CS 145 Lecture 27 – Final review
Agenda our own String class indexOf replace startsWith concat a 2-D ripple a bus counter Bingo board Code MyString.java package prefinal; public class MyString { private char[] charries; public MyString(char[] src) { charries = src; } /** * Gets the index of first instance of the * specified character. If character cannot * be found, […]
CS 145 Lecture 26 – Sound
Agenda digital music WAV format binary file I/O generate static generate pitches generate chords Code WavIO.java import java.io.DataOutputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.ByteOrder; public class WavIO { /** * The sampling frequency. */ public static final int SAMPLE_RATE = 22050; /** * Write the buffer containing audio samples to the […]
CS 145 Lecture 25 – Shape Plotter
Agenda program this a Point class the problem with arrays a growable array of Points ArrayList Program This You have: A list of points/vertices of a polygon. The ability to draw lines. How do you draw the polygon? Code Point.java package prefinal; public class Point { private int x; private int y; public Point(int x, […]
CS 145 Lecture 24 – Adding Gravity
Agenda when to create an object you have a clear picture of identity/actor you can multiple instances of set of data revisit to event-driven programming adding gravity to ball dropper canvas composition collaboration graphs in SMC law #31: try local first Code DroppingCircles.java package prefinal; import java.util.Timer; import java.util.TimerTask; import javax.swing.JFrame; public class DroppingCircles { public […]