Programming assignment 1 code and plots.