Answer these questions:
(POGIL) Suppose you had a list of positive numbers such as 5, 10, 12, 13, 6, 7, 1, 3, 2, 1. And suppose for each of the numbers in the list you added the number to a running total if it is even and subtracted it if it is odd. What result would you get for this list of numbers?
Answer
0
(POGIL) Write a pseudocode algorithm that implements the algorithm you used to calculate this total.
Answer
variable sum - 0 for each number
In this lesson you learned about pseudocode. Write an algorithm in pseudocode for washing a stack of 5 cups and saucers, where the rule is that cups are washed in hot water and saucers in cold water. Use indentation to make your algorithm easy to read and identify those parts of your algorithm that are examples of Sequence, Selection, andRepetition.
Answer
for each item pick an item in the stack if the item is a cup then wash in hot water else then was in cold water