I have to create a program that simulates flipping a coin. The directions my teacher gave me are as follows:

1. Program should prompt the user for number of runs

2. Program should prompt the user for the number of times to flip the coin in a single run

3. Limit the number of flips per run from 1 - 100,000

4. Limit the number of flips from 2 - 20

5. Program should display "H" for heads and "T" for tails for each individual toss off the coin

6. Program should display each run as a series of tosses

7. Program should display the total number of runs that had all HEADS and the total number of runs that had all TAILS

8. Program should display a message indicating a <<<ALL HEADS>>> or <<<ALL TAILS>> run

The example output should be like this (6 runs with 3 flips per run)

H T H

H T T

H H H <<ALL HEADS>>>

T T H

T H T

T T T <<ALL TAILS>>>

Number of runs with all heads: 1

Number of runs with all tails: 1

I'm about as far as the inputs and I know the math to find heads or tails, but doing everything else output wise has me stuck. I'm not expecting to be spoon fed the entire code, but I really would like some help.