-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbowling.py
61 lines (52 loc) · 1.21 KB
/
bowling.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
# Kyle Wenzel, Patrick Rao
# September 15th, 2020
# Bowling Program
# This program will
# Variable list:
# cardig1 - Score 1 of #
# cardig2 - description
# cardig3 -
# nickig1 -
# nickig2 -
# nickig3 -
# hayesg1 -
# hayesg2 -
# hayesg3 -
# epsteing1 -
# epsteing2 -
# epsteing3 -
# cardiaverage -
# nickiaverage -
# hayesaverage -
# epsteinaverage -
# carditotal -
# nickitotal -
# hayestotal -
# epsteintotal -
# celebtotal -
# teachertotal -
print("Welcome to the Bowling Program\n")
# Step 1: Assign Variables to scores
cardig1 = 101
cardig2 = 126
cardig3 = 132
nickig1 = 135
nickig2 = 117
nickig3 = 123
hayesg1 = 199
hayesg2 = 218
hayesg3 = 221
epsteing1 = 220
epsteing2 = 197
epsteing3 = 236
# Step 2: Determine Averages
cardiaverage = (cardig1 + cardig2 + cardig3)/3
nickiaverage = (nickig1 + nickig2 + nickig3)/3
hayesaverage = (hayesg1 + hayesg2 + hayesg3)/3
# Step 3.1: Calcuclate celebrity team total
carditotal = cardig1 + cardig2 + cardig3
nickitotal = nickig1 + nickig2 + nickig3
celebtotal = carditotal + nickitotal
print("The total score for the celebrity team was: ", celebtotal)
# Step : Wait for escape keystroke
input("\nPress enter to exit...")