teaching machines

CS 145 Lab 4 – Logical Operators and Conditional Statements

First, if you have checkpoints left over from last lab, get them inspected during the first 15 minutes of this lab. No credit will be awarded past these 15 minutes. Don’t forget to work in pairs! Where possible, please work with someone that you did not work with last week. The exchange of new ideas and […]

CS 145 Lecture 14 – Logic Part Trois

Agenda what ?s Venn collision detection short circuiting TODO Read section 5.3 in your book. 1/4 sheet. Start homework 3. Due before October 17. I’ve made some fixes to the specification and SpecChecker. You will need to sync through Bitbucket’s website and pull in Eclipse. Do not half-read this statement. Watch the lecture 2 video […]

CS 145 Half-homework 3 – due before October 17

See the PDF.

CS 145 Lecture 13 – Logic cont’d

Agenda what ?s compounding in Scratch not preventing bad input president material Code Logical.java Potus.java Haiku

CS 145 Lecture 12 – Logic

Agenda what ?s blackbox logic in Scratch logical operators TODO Quiz today. Be prepared to share a question in a pre-quiz review session. Finish homework 2. Schedule your trouble around office hours. Blackbox Blackbox 3 Blackbox 4 Blackbox 2 Blackbox 5 Code Logical.java Haiku

CS 145 Lecture 11 – Relational Operators

Agenda what?s methods in other languages relational operators logic in Scratch TODO Compose on a 1/4 sheet two or more questions that might appear on Monday’s quiz. Bring them to lab and share one of them during lab in a mini-review. Code Relational.java Haiku

CS 145 Lecture 10 – Testing

Agenda what ?s method guess who what does this do? digitAtPlace interface vs. implementation test-driven development Method Guess Who On your own, dream up a non-crazy one-line method. Let it accept one or two parameters. Return some value. (Non-crazy means use String or the primitives, but not Scanner or Random or convoluted expressions.) Pair up […]

CS 145 Lecture 9 – Debugging

Agenda what ?s methods elsewhere what does this do 1 visualizing memory and methods what does this do 2 call by value the debugger methods elsewhere What Does This Do 1? public static String ?(?) { return text + ” :)”; } public static ? ?(String text) { int index = text.indexOf(‘.’); return text.substring(0, index […]

CS 145 Lab 3 – Methods

First, if you have checkpoints left over from last lab, get them inspected during the first 15 minutes of this lab. No credit will be awarded past these 15 minutes. Don’t forget to work in pairs! Where possible, please work with someone that you did not work with last week. The exchange of new ideas […]

CS 145 Lecture 8 – Generous Methods

Agenda what ?s mail merge think like a method: what am I trying to do? what outside information do I need? generous methods get random letter (http://cscircles.cemc.uwaterloo.ca/java_visualize) program this TODO Start homework 2. Due before October 2. Program This 1 Write a Java method that prints the data used to generate a mailing label. What […]

1 22 23 24 25 26 35