Instructor: Stuart A. Kurtz
Office: Ryerson 166
EMail: [email protected]
Note: I tend to teach in a "John Madden" style (a reference that I'm
going to have to update, now that he's no longer a
block (ruby): It is just some code that has scope that is enclosed by either
cfw_ or a do and end statement. Returns value of last line
class constant (ruby): They are constants, usually starting with a capital
letter, that are defined inside a clas
Automata, Computability and Complexity
January 13, 2016; Due January 25, 2016, beginning of class
Problem B1 (20 pts).
We will do induction on |v|.
IH: Assume that for |v| = k and for any arbi
agile methodology New development model that embraces
change. Work with customer constantly. Short iterations guided by
customer feedback. Allows for changes to the plan and design.
Emphasizes TDD to reduce mistakes. Not finished until customer is
Int one interger
Double/Float more precise, decimals
Boolean True/False (x>5)
String word in double quotes
Char letter in one quotation mark
Int a = (int)2.8 is equal to 2
You cant cast Strings
Ascii: Every number on a keyboard is a
A brief zwischenzug - Overloading and classes.
As I've said before, dealing with numerics complicates things. One of
the ways that it complicates things is that we want to have a diverse
set of types (Integer, Double, Complex, Ra
1) This year's lab 1 will probably be next year's lab 2. Sorry about that, my ambition
got away from me, as it sometimes does.
2) Please make sure that your name is legible on your HW. I'm grading Monday's (so
<For next year - reorder this, moving much of the material to the next lecture,
so as to better prepare students for the lab.>
Remember the lab today. It is insanely ambitious, but I think you'll feel a real
sense of accomplishment wh
Let's do something a bit more interesting.
Let's suppose you want to compute the monthly payment on a loan - a house loan,
a car loan, or perhaps even a student loan :-). There are a lot of ways we
might approach this computationally,
HW1 Theory Write-up
1) The internet would still work if the DNS service stopped working. As long as every
website has its own IP address, we could access those websites by remembering those
addresses instead of using their domain names like www.googl