Use R software to answer the following question. Show the R code.1. Use acceptance-rejection method to make a function to generate samples from a distribution with pdf of f2(x) with support, [0,1].2. Plot the samples you created and add line of the expected...