respected sir/madam.
i dont have idea to do this program.
1) figure out your problem
2) create an algorithm to solve your problem
3) create pseudocode from your algorithm
4) code your pseudocode
Those are the steps to most, if not all, programming issues. Which part are you on and what do you have a question about?
(If you just ask for the code, this is how we are supposed to respond, as I'm sure you know, because you have read the
Posting Guidelines as we ask all posters to do...)
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.
Please read the Posting Guidelines and particularly the Coursework Posting Guidlines.
Then when you are ready post a new question in this thread.