Part 1: Flipping C In this part of the assignment , you will be simulating flipping a coin to get either heads or tails This requires using the statistical program R. Please go to and follow the instructions for downloading and installing R. This also requires an understanding of the probabilities for coin flipping . if you flip a fair coin one time , there are two possible outcomes : heads or tails . This can also be looked at as I head or 0 heads . The probability of 1 head is 50 % . The probability of 0 heads is 50% . The binomial distribution with p=0.5 describes this coin flipping . If you flip a fair coin three times , there are eight possible outcomes : HHH , HHT, HTH, HTT, THH, THT, TTH, or TTT. This can also be looked at as 0 heads, 1 head , 2 heads , or 3 heads . These can be presented as a probability table : (table shown above ) 1-1) Give the probability table for the number of heads for four flips of a fair coin . 1-2) In R, develop code that will flip a coin four times and count how many times heads occurs . Then , add a loop to the code so that this process is repeated 100 times , storing whether there were 0, 1, 2, 3, or 4 heads for each of 100 trials . There are multiple ways to do this , and it is okay if you use R code that you find shared from other sources. It is likely that you will need the stats package downloaded to your computer and loaded in R (http://www.rdocumentation.org/packages/stats), as this provides the functionality for Binomial and other simulations 1. Provide the R code you used for the coin flip trials 2. Use R to count how many of the 100 trials had 0 heads , how many had 1 head , how many had 2 heads , how many had 3 heads , and how many had 4