Week 2
Mon
Chapter 1:
The importance of binary.
Variables and the assignment statement.
Classwork
Use google calculator
type: 2 to the power of 6 (as a search term, see result)
Read p. 7 - 9, 13
Answer
page 47 1.4, 1.5
page 49 multiple choice 1.1 to 1.4
page 47 1.4, 1.5
page 49 multiple choice 1.1 to 1.4
Programming
Chapter 2
the print and println methods p. 61
escape sequences, p. 67
Schedule2.java
(Use only the print statement, use the tab and newline escape sequences)
Variable and assignment p. 68 - 72
integer and floating point primitive types
AreaRectangle.java (in class)
PerimeterRectangle.java
Tue
Warmup
Using the modulo (remainder) operator, mod for short
Programming
MinutesToHours.java
InchesToFeet.java
Homework
AreaTriangle.java
AreaTriangle.java
Wed
The Scanner class - getting input from the user
More mod programs:
Money.java
InchesToFeetAndYards.java
Review for Fri test
Thu
From Chapter 1
Binary system - p 7 - 9
- has two digits: 1 and 0
- the decimal system is base 10, whereas the binary system is base 2
- a single binary digit is called a bit
- there are 2 to the N ways to arrange N bits. (p 9)
- be able to convert binary to decimal and vice versa
Memory - p 12 - 13
Each memory location consists of eight bits or one byte
How many bytes in a kilobyte, megabyte, gigabyte, terabyte? (2 to the 10th, etc....p 13)
Problem solving - p 25
Given a list of problem solving steps, be prepared to give the proper order.
Identifiers and Reserved Words - p 30 - 32
Identifers - Examples: variable names, constant names, class names
Reserved words - identifiers that have a special meaning in a programming language
Know examples of reserved words that we have used: public, int, double
Know identifier naming rules
Know identifier naming rules p 32
Java is a case sensitive language
Comments
// for a single line
/* */ for single or multiple lines
Alternative programming environments
Binary system - p 7 - 9
- has two digits: 1 and 0
- the decimal system is base 10, whereas the binary system is base 2
- a single binary digit is called a bit
- there are 2 to the N ways to arrange N bits. (p 9)
- be able to convert binary to decimal and vice versa
Memory - p 12 - 13
Each memory location consists of eight bits or one byte
How many bytes in a kilobyte, megabyte, gigabyte, terabyte? (2 to the 10th, etc....p 13)
Problem solving - p 25
Given a list of problem solving steps, be prepared to give the proper order.
Identifiers and Reserved Words - p 30 - 32
Identifers - Examples: variable names, constant names, class names
Reserved words - identifiers that have a special meaning in a programming language
Know examples of reserved words that we have used: public, int, double
Know identifier naming rules
Know identifier naming rules p 32
Java is a case sensitive language
Comments
// for a single line
/* */ for single or multiple lines
From Chapter 2
print and println methods - p 61
Escape Sequences - p 65 - 68
Variables, Assignment statements, Constants - p 68 - 72
Integers and floating points (int and double) - p 72, 73
Arithmetic Expressions and Operator Precedence - p 75 - 77
Escape Sequences - p 65 - 68
Variables, Assignment statements, Constants - p 68 - 72
Integers and floating points (int and double) - p 72, 73
Arithmetic Expressions and Operator Precedence - p 75 - 77
Programming portion of test
Given the shell of a program, be able to
- declare the necessary variables
- write the necessary assignment statements
- write an output statement
- declare the necessary variables
- write the necessary assignment statements
- write an output statement
Programs similar to AreaRectangle, InchesToFeet
Snap and Processing
Fri
Test on what we’ve studied so far from Ch. 1 and 2