algorithms
- unambiguous
- executable
- terminating
algorithm design
- step 1: determine the inputs + outputs
- step 2: break down the problem into smaller tasks
- step 3: describe each subtask in pseudocode
- step 4: test your pseudocode by working a problem
public String getFirstName(String lastName) {
return **some string**;
}
data types + variables
primitive types

primitive types
double num = 2.0;
int num2 = 1;
num = num + num2;
implicit casting is occurring
dating types + variables tips
- mixing integers + floating-point values in an arithmetic expression yields a floating-point value
- you use a cast (typeName) to convert a numeric value to a different type
binary representation
- convert these numbers from binary to decimal