Topic 7 - While Loops
This topic will introduce the use of conditional (while) loops to run a block code as long as a condition is true.
Topic 7 - While Loops
What to Do?
1. Follow along with the lesson in class or complete the tutorial on your own.
I would recommend using the while not done: format for a while loop to simplify things.
Try making the dice roller awesome:
Print ASCII pictures of the sides of a die located located below.
You will need to use if statements inside the loop in order to print the correct face.
You will need to put each line of the ASCII dice into separate print statements.
Solutions can be found in the Files section below.
2. We will create a guessing game together as a class, including an IPO chart. I will provide a flowchart.
Solutions can be found in the Files section below.
3. Complete the online quiz (some of the later questions are difficult, and I do not expect that you can do all of them):
http://programarcadegames.com/quiz/quiz.php?file=loops&lang=en
4. Complete the programming assignment listed below.
What to Submit?
Submit your choice of any two of the While Loop Assignments. If you wish to do more, please do.