a process or set of rules to be followed in calculations or other problem solving operations; a set of instructions
2
New cards
sequencing algorithm
an algorithm that executes statements one at a time - in order, one after another, not skipping or repeating any statements
3
New cards
selection algorithm
a type of algorithm that uses conditions \-- which can be true or false \-- to control the flow of a program; uses if, if-else, or if-elif-else
4
New cards
iterative algorithm
a type of algorithms that loops or repeats code
5
New cards
Iterative Development Process
a software development approach where a project is divided into smaller iterations or cycles; each iteration involves the completion of a set of tasks, including planning, designing, coding, testing, and documentation
6
New cards
flowchart
a graphical representation of the steps involved in a computer algorithm
7
New cards
parameter
extra information sent in between the parentheses of a function
8
New cards
if statement
a structure used to determine if a condition is true or false; if true, it executes a block of code; if false, it skips that block of code
9
New cards
relational operators
a symbol that is used to compare two values; the result is either true or false
10
New cards
\==
equal to
11
New cards
!\=
not equal to
12
New cards
\>
greater than
13
New cards
\>\=
greater than or equal to
14
New cards
<
less than
15
New cards
less than or equal to
16
New cards
logical operator
a keyword that allows us to check more than one condition at a time; usually uses and, or, not
17
New cards
and
a logical operator that requires both conditions to be true for the overall condition to be true
18
New cards
or
a logical operator that requires only one condition to be true for the overall condition to be true
19
New cards
not
a logical operator that causes a condition to evaluate to the opposite
20
New cards
truth table
a breakdown of all the possible truth values returned by a logical expression
21
New cards
if-else statement
a structure used in order to have a program choose between two different sets of code; if the condition is true, the if section will execute; if the condition is false, the else section will execute
22
New cards
else-if statement
a structure used to check a series of conditions; when Python locates the first true condition, it executes that portion of the code and ignores the other conditions