# Calculates the average score using a conditional-controlled while-loop
total = 0.0
counter = 0
score = input("Enter a score to average (or -1 when done): ")
while score > 0:
total = total + score
counter = counter + 1
score = input("Enter a score to average (or -1 when done): ")
if numberOfScores > 0:
print "The average score is", total / numberOfScores
Write a program similar to Part C that calculates the amount of money a person would earn over a period of time if their salary is one penny the first day, two pennies the second day, and continues to double each day.
This version of the program should determine how many days a person would need to work before they received a million dollars per day in salary.