teaching machines

CS 145 Lecture 10 – Midterm 1 review

Things to know The test is hand-written. You may write SOP instead of System.out.println. You need not import any classes. The front page of the exam will contain compact documentation for the Scanner, Random, and String classes. A strategy: on questions where you are asked to write a method, write the method signature first, not […]

CS 145 Preassignment 2 – due before 10/19

See the PDF. When you download speccheck_pre2.jar, make sure the filename ends in “.jar”.

CS 145 Lecture 9

Agenda compound booleans logical operators && and || ensuring a number in a range stopping a command loop projectiles writing our own String.indexOf if/else statements Code LogicalFun.java package lecture; import java.util.Scanner; public class LogicalFun { public static void main(String[] args) { boolean isMrRight; boolean isTall = false; boolean isDark = false; boolean isHandsome = false; […]

CS 491 Lecture 10 – Rattle Part III

Agenda why wouldn’t it play? creating a custom adapter getting results from an Activity triggering a list update catching forgot-to-save adding a contextual menu writing out a ringtone Cleanup I’ve cleaned up a few things since last time. I added a Play button to the EditActivity, pushed the song-playing routine out to a Utilities class, […]

CS 491 Homework 2 – due before 10/19

See the PDF.

CS 491 Lecture 9 – Rattle Part II

Agenda add an edit Activity to Rattler sharing data across Activitys sharing global data across all Activitys update a database record writing a custom adapter playing a song speaking a song Editing Making a user-friendly UI for editing will take some work. Let’s just mock up an Activity that displays a song’s fields in some […]

borglimj hw1

I decided to make a quiz machine that is generated dynamically by the user. On the home page you can choose to add categories to your quiz.  Such as math, science, random questions.  You can create as many categories as you would like.  Whats your satisfied with the number of categories, its time to start […]

CS 145 Lecture 8

Agenda an example animation finish summing compound booleans logical operators && and || Code Summer.java package lecture; public class Summer { public static void main(String[] args) { System.out.println(sum(100)); } public static int sum(int n) { int runningTotal = n; while (n > 0) { n = n – 1; runningTotal = runningTotal + n; } […]

leggitns Homework 1 Post Mortem

I set out to create a sort of  quiz app of sorts with allowing users the ability for users to create their own questions and group them by categories as well as play preloaded quizzes.  Unfortunately, due to time constraints, or more appropriately, poor time management on my part, I was unable to implement any […]

kozuchaj hw1

I wrote a basic math flash cards application. The user is greeted with a menu screen with basic info about the program, and a button to start playing. I tried to implement a settings menu attached to this screen but I couldn’t get it to open at all. Once the use hits play they are […]

1 3 4 5 6