Consider the following game: you begin with $\$ 20 .$ You fair coin, winning $\$ 10$ if the coin lands heads and losing $\$ 10$ if the coin lands. Play continues until you either go broke or have $\$ 100$ (i.e., a net profit of $\$ 80 ) .$ Write a simulation program to estimate:
(a) The probability you win the game.
(b) The probability the game ends within ten coin flips.
$[$ Note: This is a special case of the Gambler's Ruin problem, which we'll explore in much greater depth in Exercise 145 and again in Chap. $6 . ]$