Class 4 W 1/23 Comp 110 Outline Variables Strings Terms to know: variable variable declaration variable initialization assignment statement data type literal named constant - not covered W 1/23 variables store data in main memory variables have mnemomic names: n1 average studentName value = data stored in variable examples of values: 17 "comp110-001" 3.14 Data type set of values set of operations on those values int String {..., -1, 0, 1, 2 ...} "" "a" "ab" "abc" .... 1 very different from "1" + - / = SOP(n1) find(substring, sting) + = SOP(string) "comp110 " + "rocks" "comp110 rocks"