The program should take the given image as input and the end result should be each white object in a separate figure window.
It's all about detecting intensities of pixels. It'll be better if you use MATLAB. Such binary images will have just 2 intensity levels 0(black) and 1(white).
No one is going to do it for you unless you are ready to pay. Buy and read a copy of Digital Image Processing by Gonzalez