Sep 22, 2015

Lecture 8

We did not cover much today because most of the class was spent working on our projects. We went over loops (while and for)
We made a factorial function by using if else statements and a for loop.

For this context example, we graphed the alternating harmonic series. We used a while loop to keep calculating the values until there was a 0.001 difference between numbers. The if statement checks that if 100 iterations have been executed, the program will break out of the loop.

Practice exercises comparing for loop and find function