Flipping Coins

A class representing the state of a coin is in the file Coin.java. We can use instances of the class to simulate the flipping of a coin. Copy it to your directory, then write a program to find and print the length of the longest run of heads in 100 flips of the coin. A skeleton of the program is in the file Runs.java. To use the Coin class you need to do the following:

Hint: you may find it useful to look at FlipRace.java. The program flips two coins until one of them comes up heads three times in a row.

Submit a zip file, flipCoins.zip, containing the two java files and your lab document showing the output of three runs of the program.