Loops
Description
One of the powerful attributes of a computer program is its ability to make decisions. Although it can be argued that only humans are capable of decision making, computers are able to make decisions using criteria. They are able to compare two values and determine whether one is larger than the other. They can determine whether a statement is true or false, based on empirical data.
Conclusion Questions
1. The only problem we encountered was missing brackets.
2. While loops can be used for If and Else statements. If - Else structures can be used for if for what to do when the sensors read equal to, above or below a number and else statements are used if the readings don't fit the criteria (if all else fails) the else statement is used.
2. While loops can be used for If and Else statements. If - Else structures can be used for if for what to do when the sensors read equal to, above or below a number and else statements are used if the readings don't fit the criteria (if all else fails) the else statement is used.