Mike Halle/, www.bci.mcgill.ca
16/09/15
Week 2 Lecture 2 Comments, Variables, Assignment, Data types
1
public class FirstTime cfw_
public static void main(String[] args) cfw_
System.out.println(You own me.");
Comments
Comments are
COMP-202: Foundations of Programming
Lecture 5
Melanie Lyman-Abramovitch
September 22nd, 2015
COMP-202: Foundations of Programming
Review
Last class we covered:
Boolean Expressions.
Condition Blocks
COMP-202: Foundations of Programming
Conditions - An Exe
Boolean Algebra and Logic
Gate
1
Algebras
What is an algebra?
Mathematical system consisting of
Set of elements
Set of operators
Axioms or postulates
Why is it important?
Defines rules of calculations
Example: arithmetic on natural numbers
Set of eleme
Chapter 1
Digital Systems and Binary Numbers
Outline of Chapter 1
1.1 Digital Systems
1.2 Binary Numbers
1.3 Number-base Conversions
1.4 Octal and Hexadecimal Numbers
1.5 Complements
1.6 Signed Binary Numbers
1.7 Binary Codes
1.8 Binary Storage an