false. Logical operators include and, or, not. Epsilon The difference threshold
indicating that floating-point numbers are equal. 0.0001 is common. loop a
programming construct that repeats a group of commands (loop body). Each
time through a loop is an iteration. sentinel value a special (pre-selected) value
indicating the end of a list, such as a list of positive integers ending with 0, as in
10 1 6 3 0. loop expression The expression checked for whether to enter the
Q: while loop a loop that repeatedly executes the loop body while the loop's
expression
Answer:
for loop a loop consisting of a loop variable initialization, a loop expression, and a
loop
variable update that typically describes iterating for a specific number of times.
Three parts: a
loop variable initialization, a loop expression, and a loop variable update.
do-while loop a loop that first executes the loop body's statements, then checks the
loop
condition. Compared to a while loop, a do-while loop is useful when the loop should
iterate at
least once.
function a named list of statements
function definition consists of the new function's name and a block of statements.
The
function's name can be any valid identifier.
, Q: parameter a function input specified in a function definition. Ex: A pizza area
function might
Answer:
have diameter as an input.
A parameter is like a variable declaration. Upon a call, the parameter's memory
location is
allocated, and the parameter is assigned with the argument's value. Upon return, the
parameter is deleted from memory.
argument a value provided to a function's parameter during a function call.
An argument may be an expression, like 12.0, x, or x * 1.5.
return variable A function may return one value and does so by assigning a return
variable
with the return value.
Modular development the process of dividing a program into separate modules that
can be
developed and tested separately and then integrated into a single program.
Incremental development a process in which a programmer writes and tests a few
statements, then writes and tests a small amount more (an incremental amount), and
so on.
function stub a function definition whose statements have not yet been written.
Algorithm sequence of steps that solves a problem, generating correct output for any
valid
input values.
algorithm time efficiency The number of calculations required to solve a problem.
Systems Development Life Cycle (SDLC) Analysis phase - defines a program's
goals.