teaching machines

CS 145 Lecture 20 – For Loops

Agenda what ?s alphabet fillDown indexOf program this TODO Start homework 4, which is due before October 31. This is a full homework. You will want to use the full two weeks. Read sections 5.1, 2.3-2.4, and 4.2. Turn in next lecture a 1/4 sheet with questions, observations, and examples of algorithmic repetition you see […]

CS 145 Lab 5 – Loops

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 Homework 4 – due before October 31

See the PDF.

The Revolution Was Madeup

Madeup now supports surfaces of revolution. Trace out a radially-symmetric cross-section of an object, then spin it around the object’s central axis some number of degrees using the revolve command to form a solid. The variable nsides determines how many intermediate stops are made as the cross-section is spun. I offer a few examples of the revolve […]

CS 145 Lecture 19 – Looping II

Agenda what ?s predicate chain game program this loops driven by user input sharing birthdays for loops Predicate Chain Game Decide upon a yes-or-no that you can ask about someone–a predicate. If you were to ask yourself this question, you would say yes. For example: Are you related to Abraham Lincoln? Ask your right-neighbor this question. If […]

CS 396 Lecture 7 – JAMF

Agenda what ?s Doug Rhoten of JAMF TODO Share two observations or questions you took away from our discussion with JAMF. Research our next speaker: Target. Prepare two questions you might ask Emily Sjodin and company. Turn these in on one 1/4 sheet at the beginning of next class.

Randomness in Madeup

About 30% into writing tests for a piece of code, my energy deflates. When I consider how many more tests I have to write to thoroughly test my code, I am overwhelmed. The worst part about testing is that you can’t just tax the moving parts of your software the way someone like you would. […]

CS 145 Lecture 18 – Hello, While

Agenda what ?s mercy fortnight repeating yourself flashcards acrostic Mercy Fortnight If you did not get credit for homeworks 1, 2, or 3, you have an opportunity to rectify this during the next two weeks. I will regrade a homework submission under the following conditions: You correctly solve one of the problems below from Project Euler. […]

Naming Things

Often in my introductory programming classes I will share a snippet of code that is unnamed or vaguely named. I ask the students to interpret the code and choose better names. This past week I gave them this snippet: public static double ?(double x, boolean b) { if (b) { return x; } else { return x […]

CS 436 Lecture 17 – Local Databases

Blu Read Catch Phrase (http://en.wikipedia.org/wiki/Catch_Phrase_(game)). Read Saving Data in SQL Databases (http://developer.android.com/training/basics/data-storage/databases.html). Watch http://youtu.be/UNWCvrNxlJ4. Gold Read Catch Phrase (http://en.wikipedia.org/wiki/Catch_Phrase_(game)). Read Core Data Tutorial for iOS: Getting Started (http://www.raywenderlich.com/934/core-data-tutorial-for-ios-getting-started). Read Core Data (https://developer.apple.com/library/ios/documentation/DataManagement/Devpedia-CoreData/coreDataOverview.html#//apple_ref/doc/uid/TP40010398-CH28-SW1). Watch http://youtu.be/X9xiehmawMs.

1 138 139 140 141 142 204