mechanics homework 1

please TYPE the answers and include M-file for this homework assignment. I need quality work please.