This forum is not to provide free java source codes, this is to help you if you stuck some where in your program.
try your assignments yourself and if any problem is there we are here to help you.