[COE 318] - Midterm Exam Guide - Everything you need to know! (19 pages long)

443 views19 pages

Document Summary

Classes must be saved in files of the same name. 4 steps of the problem solving method: Variable: can take any value; variable types differ as well as their values. Variable types: integer, double, string, char, boolean. Pronunciation of mark=76: 76 is assigned to mark. Every opening (curly) bracket has a closing (curly) bracket. To concatenate is to join ( + ) Variables must be declared (what type of variable) and initialized (assigned a value) A variable could be named in uppercase. Not all syntax lines end in a semicolon ( ; ) Legal: int sum = tax + 30; Illegal: int sum = 5 + 30; Large text comments ( /* */ ) If statements used to make decisions based on boolean expressions (true or false) Nesting: to place a structure within another structure. Nested statement does not execute unless previous expression is true.