Take a moment to look at the profile of the OP. They were here for about a week and in that time asked a couple of dozen questions - all obviously homework. They made no attempt to answer the questions themselves, just expected the people here to do that.
This is a help site, not a we'll-do-your-homework site. There are plenty of people here who are more than ready to help, but the poster has to show
that they are willing to make an effort themselves.