Give C/C++ code that calculates the offspring of two childrenfor a max ones simulation. The crossove

Give C/C++ code that calculates the offspring of two childrenfor a max ones simulation. The crossover should be a one-pointcrossover, at a randomly determined point in the chromosome. Thelength of the chromosome and the two parents are given. Thechildren should be placed *offspringOne and *offspringTwo pointersthat are passed to the function. The template follows: void crossover( int parentOne, int parentTwo, int* offspringOne,int* );
Tip: Assume that fitness and chance of crossover (pc) hasalready been done; and that random() has been initialized andnecessary libraries included. Just place the children into thepointers, do not calculate their fitness . . .

"Is this question part of your assignment? We can help"

ORDER NOW