Script and PNG for Question 1.
Script and PNG for Question 2.