Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>> ========== RESTART: D:\CSI31F18\sample pgms\code\chapter09\rball.py ========== This program simulates a game of racquetball between two players called "A" and "B". The abilities of each player is indicated by a probability (a number between 0 and 1) that the player wins the point when serving. Player A always has the first serve. What is the prob. player A wins a serve? .52 What is the prob. player B wins a serve? .55 How many games to simulate? 100 Games simulated: 100 Wins for A: 41 (41.0%) Wins for B: 59 (59.0%) >>> ========== RESTART: D:\CSI31F18\sample pgms\code\chapter09\rball.py ========== This program simulates a game of racquetball between two players called "A" and "B". The abilities of each player is indicated by a probability (a number between 0 and 1) that the player wins the point when serving. Player A always has the first serve. What is the prob. player A wins a serve? .66 What is the prob. player B wins a serve? .67 How many games to simulate? 500 Games simulated: 500 Wins for A: 253 (50.6%) Wins for B: 247 (49.4%) >>> ========== RESTART: D:\CSI31F18\sample pgms\code\chapter09\rball.py ========== This program simulates a game of racquetball between two players called "A" and "B". The abilities of each player is indicated by a probability (a number between 0 and 1) that the player wins the point when serving. Player A always has the first serve. What is the prob. player A wins a serve? .66 What is the prob. player B wins a serve? .65 How many games to simulate? 500 Games simulated: 500 Wins for A: 289 (57.8%) Wins for B: 211 (42.2%) >>> ========== RESTART: D:\CSI31F18\sample pgms\code\chapter09\rball.py ========== This program simulates a game of racquetball between two players called "A" and "B". The abilities of each player is indicated by a probability (a number between 0 and 1) that the player wins the point when serving. Player A always has the first serve. What is the prob. player A wins a serve? .66 What is the prob. player B wins a serve? .65 How many games to simulate? 500 Games simulated: 500 Wins for A: 303 (60.6%) Wins for B: 197 (39.4%) >>>