discussion board

Description
Response
In figure 4-23, is the for loop in which it tells the dragon how many times it wants it to flap its wings repeatedly. So basically the statement is basically counting the number of flaps. so in general the for statement in this flowchart will use the flapWings() message will count from 0 to the number of times minus 1. The flowchart in figure 4-32 is depicting the while loop. In which case the flow is evaluated if it reaches the while statement. So if it is false, the flow will ignore the while statement and bypass all its other statements. But if is true, then all the statements within the while statement are going to performed. After which the process will begin again as long as the condition remains the same.
The main difference between the for and while loop is that, with the for loop, there is a range that is set and once that range has been reached, it won’t start back again. While with the for loop, it will stop but then it will start back again from the beginning thus making it kind of continuous in a sense

Order from us and get better grades. We are the service you have been looking for.