#!/usr/bin/env python
import math
def findOver100p1():
t = 0
for i in range(0,101):
t = t + math.sqrt(25 * (2+ (.04* i)))
return t * .04
def findUnder100p1():
t = 0
for i in range(1,101):
t = t + math.sqrt(25 * (2+ (.04* i)))
return t * .04
def findOver1000p1():
t = 0
for i in range(0,1001):
t = t + math.sqrt(25 * (2+ (.004* i)))
return t * .004
def findUnder1000p1():
t = 0
for i in range(1,1001):
t = t + math.sqrt(25 * (2+ (.004* i)))
return t * .004
def computeAverage100p1():
t, avg = 0, 0
t = findOver100p1() + findUnder100p1()
avg = t / 2.00
return avg
def computeAverage1000p1():
t, avg = 0, 0
t = findOver1000p1() + findUnder1000p1()
avg = t / 2.00
return avg
def main():
print "At 100 iteration, we have the following: "
print computeAverage100p1()
print "At 1000 iteration, we have the following: "
print computeAverage1000p1()
# added proper main function
if __name__ == "__main__":
main()