CS 115 Pre-Lab 6 Instructions

Deadline: Tu 2/24/2015 at 7 AM

Refer to the Week 6 reading or other resources as necessary to complete this assignment.


Part 1: Review

Answer Questions 1–7 in your Moodle pre-lab. You can use the the Online Python 3 tutor to help, but you should try to answer the questions on your own first.

Part 2: Introduction to while loops

Enter the following Python code into the Online Python Tutor:

counter = 1
total = 0
while counter <= 5:
    total += counter
    counter += 1
print('Done')

Use the tutor to step through this loop, then answer Questions 8–10 in Moodle.

Part 3: Submit the pre-lab (due Tu at 7 AM)

Review your answers, and then click the Next button at the bottom of the Moodle quiz. Once you do that, you should see something similar to this:
Quiz attempt summary

Click the Submit all and finish button. You MUST do this so that your pre-lab can be graded! Once you have submitted your quiz, you should see something similar to this at the top of your Moodle window. The important part is that the State shows up as Finished.
Quiz confirmation