@Hxnry/

Array 3 project

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
scores = [52, 69, 85, 98, 95, 76, 82, 83, 92, 87, 94, 68, 77, 45, 70, 71, 59, 60, 74, 84, 83, 73, 75, 78, 80, 92, 91, 97, 62, 84]

total=0
lowscore=0
highscore=0
avgscore=0
SD=0
acounter=0
bcounter=0
ccounter=0
dcounter=0
fcounter=0


#Total
print("Number of Scores:      "+  str (len(scores)))

#Low Scores
lowscore=min(scores)
print("Low Score:             "+ str (lowscore))

#High Scores
highscore=max(scores)
print("High Score:            "+ str (highscore))
#Average Scores
for x in range (len(scores)):
  total+=scores[x]
print("Average Score:         "+str (total/len(scores)))
#Standard Deviation
SD=(173.1156)
print("Standard Deviation:    "+str (SD))

#Total A's
for x in range(len(scores)):
 if(scores[x]>=90):
  acounter+=1
 
print("Total A's:        "+ str(acounter))

#Total B's
for x in range(len(scores)):
 if(scores[x]<=89 and scores[x]>=80):
  bcounter+=1
 
print("Total B's:        "+ str(bcounter))


#Total C's
for x in range(len(scores)):
 if(scores[x]<=79 and scores[x]>=70):
  ccounter+=1
 
print("Total C's:        "+ str (ccounter))



#Total D's
for x in range(len(scores)):
 if(scores[x]<=69 and scores[x]>=60):
  dcounter+=1
 
print("Total D's:        "+ str (dcounter))



#Total F's
for x in range(len(scores)):
 if(scores[x]<=59 and scores[x]>=50):
  fcounter+=1

print("Total F's:        "+ str (fcounter))