Program assignment 2 for the R programming course completed and committed