yeah well i asked the teacher for help and he told me to read the book.. so i did and did not find anything hence i am here.. itd be helpful if someone here was so nice as to write this code for me.. thanks in advance .