the second part of my code i attached in this post kindly look into this and make the corrections and explains me where i am wrong