Assignment 3 Code

R code required to complete Assignment #3.