Relational Operators
Relational Expressions
if statement
how an if statement works
if the expressions if false, then statement is skipped
block of code
code enclosed within { }
if statement general format
if (expression)
statement;
if/else statement
how does an if/else statement work
if/else statement general format
if (expression)
statement1;
else
statement2;
nested if statements
if/else if statement
if/else if format
if (expression)
statement1;
else if (expression)
statement 2;
else
statement 3;
Flags
logical operators
short circuit evaluation
if the value of an expressions can be determined by evaluating just the sub-expression on the left side of a logical operator, then the sub-expression on the right side will not be evaluated
Menu-driven program
menu
list of choices on the screen
how to implement menus
using if/else if statements
input validation
what is bad input
how to validate input
comparing characters and strings
ASCII values from A to Z
65 - 90
ASCII Values from a to z
97 - 122