Instructor: Juan Camilo Gamboa Higuera
Use the arrow keys to navigate. Press 'm' to see all the slides.
Due on September 19th
Trottier 3rd floor.
Monday & Tuesday & Wednesday & Thursday from 1:00pm - 5:00pm
Starts on September 15th.
If you're in CS and you know programming, you can skip this and take COMP 250
If you're not in CS, talk to your academic advisor
Motivations
Expectations
Course Administration
Algorithms
Binary
ASCII
Scratch
Java
Eclipse
Counting with bits:
What is 10101101?
What is 10101101?
128*1 + 64*0 + 32*1 + 16*0 + 8*1 + 4*1 + 2*0 + 1*1
173
Other encodings: UTF-8 (Unicode), ISO-8859-1
e.g.
Two numbers into the result of an arithmetic operation
A yes/no question into an answer: yes or no (Decision)
A question about a set of numbers into a number that answers that question (Search)
Count the number of people in a room
L
. For example, {10,0,99,1,255,1,3,2}
Let MAX be equal to the first element in L
For each number n in the list L
| If n > MAX
| | Set MAX equal to n
Return MAX as the output
L
that is bigger than any other number in L
javac Example1.java
This creates a file called Example1.class, containing the bytecode
java Example1
/