Monday, October 10, 2011

Games! Computer Algorithms

Define:
 
Algorithms: A process or set of rules to be followed in calculations or other problem-solving operations, esp. by a computer


Pseudocode: A notation resembling a simplified programming language, used in program design
 
Machine Language:  programming language designed for use on a specific class of computers
 
High Level Computer Language: is a programming language with strong abstraction from the details of the computer.
 
Flowchart:  diagram of the sequence of operations in a computer program
 
Sequence: A particular order in which related events, movements, or things follow each other
 
Selection: Data highlighted on a computer screen that is a target for various manipulations
 
Repetition: The action of repeating something.


Opening a door and entering a room:

  1. turn right 180 degrees
  2. walk forward 2 steps
  3. turn right 90 degrees
  4. walk forward 2 steps
  5. turn left 90 degrees
  6. move right hand infront of you
  7. grab door handle
  8. turn wrist right and push
Negotiating traffic lights as you drive down the street.
  1. if light is green contiinue at current speed
  2. if light is red stop
  3. if light is yellow prepare to stop

0 comments:

Post a Comment