R- programming –> out put pdf file and a screen shot on computer

Write a fully executed R-Markdown program and submit a pdf file solving and answering questions listed below under Problems at the end of chapter 13. For clarity, make sure to give an appropriate title to each section.

13.1 a and b.

13.2 c and d.

Mandatory:
1.
Please provide me a PDF file after execution
2.  screenshot of the computer with R program opened. when executed

Please find the attached textbook and reference 13.1  and 13.2