The first step in a Counter is?
Initialize to 0 or 1
What is the first step in a Accumulator?
What is Initialize to 0
What do you do before you start a loop?
What is initialize the control variable before the loop
What is the 1 step for an Array?
What is Declare and initialize the array
What is a loop whose repetitions are managed by a counter; also called a counter-controlled loop.
What is Initialize to 0, alter(add or subtract) a variable amount, and after accumulating use in an equation or/and print.
This flow control statement loops through a set of statements if a test statement continues to evaluate to True?
What is a for or while loop?
Named variables that holds values are called?
What is items or elements.
Within a loop’s body, you can change the value of the blank in a number of ways.
What is the blank?
What is a loop control variable?
What is the definition of an accumulator?
What is An accumulator is a variable that you use to gather or accumulate values.
What is the difference between a definite loop and an indefinite loop?
What is definite can execute a predetermined amount but with an indefinite loop, you don't know when it will end.
Refer each element in the Array by its?
What is a subscript.
WHAT IS THE DEFINTION FOR COUNTER?
WHAT IS ANY NUMERIC VARIABLE USED TO COUNT THE NUMBER OF TIMES AN EVENT HAS OCCURRED?
Something an Accumulator need is a good title, what are some of the best titles to use for an Accumulator?
What is total, accumPrice or sum.
An expression that represents only one of two states, is usually expressed as true or false?
What is a Boolean Expression?
To Load or populate(print) the array use a?
What is Loop counter-control variable.
# Initialize loop control variable.
numberCounter
# Write your counter controlled
while numberCounter <=NUM_LOOPS:
# Multiply by 10.
byTen = numberCounter
# Multiply by 2.
byTwo = numberCounter
print(head1 + str(numberCounter))
print(head2 + str(byTwo))
print(head3 + str(byTen))
# Next number.
numberCounter = numberCounter +1
What is wrong with this problem.
What is Did not initialize nor did multiply by 10 or by 2.
What is the formula usually used to alter a variable amount?
What is total=total+blank.
What is Missing from this problem?
start
Declaration
string name
string QUIT ="ZZZ"
while name <> QUIT
output "Hello ", name
input name
endwhile
output "Goodbye"
stop
What is Loop control variable is not initialized
citiesInMichigan = ["Acme", "Albion", "Detroit", "Watervliet", "Coloma", "Saginaw", "Richland", "Glenn", "Midland", "Brooklyn"]
inCity = input("Enter name of city: ")
if inCity in citiesInMichigan:
print(" " )
else:
print("Not a city in michigan.")
What is missing from this problem.
What is "City found."