read hw4 pdf carefully and solve the questions. The other two pdfs are similar q