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

85 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+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents