computing Flashcards

(1 cards)

1
Q

dayCount = 0
snowfalMeasure = 1
measurementCount = 0
snow = []
falTotal = 0

snowfalMeasure = float(input(“enter the snowfall (in cm): “))
while snowfalMeasure != 0:
while snowfalMeasure > 0 and snowfalMeasure < 60:
snowfalMeasure = float(input(“enter the snowfall (in cm): “))

if snowfalMeasure > 0.5: 
    snow.append(snowfalMeasure) 
    falTotal = snowfallMeasurement + falTotal
    measurementCounter = + 1 # 

if snowfalMeasure != 0: 
    dayCounter = + 1 

average = falTotal  / measurementCount
round_avg = round(average,2) 
print(round_avg) 

if falTotal >10.0 and dayCount >5:
    print("The number of days lasted was", dayCount)
    print( dayCount, "Were not included in the calaculations")
    print("The", snowfalmeasure,"stored were as follows:")
    print("The average of the stored measurements", round_avg)
else:
    print("Not enough data for anaysis")
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly