We don't do homework for you. Sorry. If you have a specific problem that you'd like to ask for help with, please do, but otherwise... we don't do homework for you. :/
i checked that code it gives percentile of the array. my requirement is i give an array and percent and program should return the value of that percent