COE 318 Lecture Notes - Lecture 1: Infinite Loop, While Loop, Control System

82 views10 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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents