Modifying the Coin Class

  1. Create a new class named BiasedCoin that models a biased coin (heads and tails are not equally likely outcomes of a flip). To do this modify the coin class from the text (in the file Coin.java) as follows:

  2. Compile your class to make sure you have no syntax errors.

  3. Modify the Runs program from the last exercise to use a BiasedCoin.