Write a program that flips of a coin. Write a function names coinToss that simulates the tossing of a coin. When you call the function, it should generate a random number in the range 1 through 2. If the random number is 1, the function should display "Head", otherwise, "Tails".
Every time head comes up, the player wins $1; every time tail comes up, the player loses $1.