Quote:
im too stupid and i didnt try anything can anyone help me to solve this quetion
No, because you don't want help, you want us to do the job and give you a working solution so you can claim it is yours. It is rude of you.
For this kind of service, you should think about hiring a professional.
Advice: if you are so stupid that you can't even start thinking about the problem, turn away from computer programming.
You show no attempt to solve the problem yourself, you have no question, your main effort is pasting the requirement, you just want us to do your HomeWork.
We do not do your HomeWork.
HomeWork is not set to test your skills at begging other people to do your work, it is set to make you think and to help your teacher to check your understanding of the courses you have taken and also the problems you have at applying them.
Any failure of you will help your teacher spot your weaknesses and set remedial actions.
Any failure of you will help you to learn what works and what don't, it is called 'trial and error' learning.
So, give it a try, reread your lessons and start working. If you are stuck on a specific problem, show your code and explain this exact problem, we might help.