Escolar Documentos
Profissional Documentos
Cultura Documentos
You will be using the LoopExperiments workbook with these exercises. As usual,
when the question asks you to say what some code will do, you should first write
down what you think it will do, then run it to see if you were right, and write down
what it actually does.
1. Look at the code for button Q1, and run the program by clicking the button.
a. What does the code inside the loop do? (Describe in your own words.)
Try setting limit to 1 and running the program again. Now how many
times does the loop execute?
g. Explain in your own words what happens when the value of limit is
smaller than the initial value of j.
5. Button Q5 has no code. Write a loop that will print the numbers 5, 10, 15, 20,
25, 30, 35 vertically in the list box. There are a number of ways to do this;
you may use any way that works as long as it uses a loop. Copy and paste
your code here.