Hi, and welcome to JavaRanch!
Unfortunately we can't provide you wil a full "pgm", assuming that means program. Please do try and UseRealWords (<- click). If you could share with us what you've done so far, and what specific problems you're facing, I'm sure lots of people would be more than happy to help you out! Just ShowSomeEffort (<- click) and keep in mind that JavaRanch is NotACodeMill (<- click) where people provide you with complete answers. We're all here to learn
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.