Java Games: Flashcards, matching, concentration, and word search.

C++ Litvin Ch 6

AB
iterativeto repeat code
conditional branchingto choose and execute one or another fragment of code depending on the values of some variables or expression
conditional jumpsspecial CPU expressions that support conditional branching - it tests a certain condition and tells the CPU to jump to the specified instruction depending on result of test
IPa register called the Instruction Pointer
CPUCentral Processing Unit
unconditional jumpinstructions that tell the CPU to jump to a specified address in the program by unconditionally placing a new value into the IP
Boolean expressionslogical expressions
logical expressionsusing relational and logical operators
Boolean Algebraan algebraic system for describing operations on logical propositions
George Booleintroduced boolean algebra
compound statementsblocks inclosed in braces consisting of 2 or more statements
true is represented bynon-zero value
false is represented byzero value
and&&
or||
not!
DeMorgans Laws!(p && q) == (!p || !q) and !(p || q) == (!p && !q)
short-circuit evaluationif the value of the first operand in a binary logical operation unambiguously determines the result of the operation the second operand is not evaluated
bottom-up approachimplement the functions needed to complete the program and then write the main program
sequential flow of control during program execution can be altered by 4 types of control mechanisms calledfunction calls, iterative statements, conditional statements, switch statements


The Summit Country Day School
Cincinnati, OH

This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities