Monday, December 10, 2012

IF and OR

I actually found this Unit to be extremely compelling.  I can begin to see the code coming together in my mind and the possible ways I would put lines of code together to achieve a goal.  Today's lesson was made up of:

11.1 - Intro to Condition Flow Statments
11.2 - The Mechanism for Conditional Flow Statements
11.3 - Implementing an IF Statement in C
11.4 - More about  IF Statements and Logical Operations
11.5 - Intro to Concepts of OR with Conditional Statements

Like I said above, I am starting to see where the rabbit hole is leading.  These statements are the basis of programs either choosing to run and operation or not to run and operation based on the presented information introduced as the variables.  Hence, though a program is looking for a specific integer or character, these Operations Statements will decide which direction the program will run.  Hence, the more Operations, the much much much longer the code will be.  Depending on the program depths of course.

The instructor had a very interesting point of view when it came to explaining Flow Statements.  In a video game, the computer is making decisions all the time.  Main First Person Shooters.  The second your character is shot, the Flow statements, begins.  The computer looks at his current health and either allows him to continue the game or ends the game / program due to lack of health.  Obviously, the concept go much further but I have the basic idea and understand how to write the code and it's functions.

No comments:

Post a Comment