Question involving genetic algorithms in artificialintellligence

Consider the example of a genetic algorithm given in the text on pg. 224. Give C/C++ code for a function that takes an individual – x2. The template of the function is: Tips: The purpose of this particular genetic algorithm’s simulation is
PayPal Gateway not configured
PayPal Gateway not configured