CH 2 Flashcards
algorithm
Step-by-step procedure or list of actions to perform a task or solve a problem
argument
information sent to a method
asSeenBy argument
makes an object move relative to another object
bug
errors in computer program, program doesn’t do what it is supposed to do
comment
statements in a program that are overlooked when the program is compiled and help the user understand what the program does
control structure
Controls the flow and order of a program
Do in order
control structure that executes instructions sequentially
Do together
control structure that executes instructions simultaneously
duration argument
how much time it takes for an instruction to be performed
flowchart
graphical representation of a program using shapes and symbols
instruction
one statement in a computer program telling the computer what to do
method
Manipulates an object, actions performed by an object
move to method
this action moves the center of one object to the center of another object
nesting
One program statement is written inside another
orient to method
changes the direction of an object to have the same orientation/direction as another object
program
sequence of instructions that tell a computer what to do
property (of an object)
values associated with an object such as color and size
pseudocode
program-like step by step instruction
runtime
when program is running
scenario
Problem or task that needs to be solved.
state
a snapshot of a scene
storyboard
part of planning process of writing a program, creates a visual or textual way of representing a program
style argument
describes how a method will be performed
syntax
the set of rules that define the combinations of symbols that are considered to be correct in a language
trial-and-error
process of trying a piece of code, then executing it and fixing any mistakes there might be
turn to face method
turns an object to look at another object
vehicle property
synchronizes the movement of two objects so that they move or turn together