Write a program similar to part c that calculates the


# 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.

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program similar to part c that calculates the
Reference No:- TGS02885066

Expected delivery within 24 Hours