Took Western Civ exam, think i need a new right hand.
i don't pay for iPhone apps. I have yet to find a 100% quality app for it besides:
- Remote
- TwitterFon
- Mint.com
- The Weather Channel
- ICanHazCheezburger
# Standard Deviation of the Mean calculator
# Created 5.17.2009, by Douglas W. Selby (selby.douglas@gmail.com)
# Version 1.0
from math import *
def main():
n = input("How many entries? ")
i = 1
average = 0
entryList = []
while(i<=n):
entry = input("entry? ")
entryList.append(entry)
print entryList
average = average + entry
i = i+1
average = average/n
i=0
sum = 0
while(i<=n-1):
sum = sum + (entryList[i]-average)**2
i = i+1
deviation = sqrt(sum/(n-1))
print "Standard Deviation of the Mean = ", deviation
main()