Build the algorithm which calculates and prints the values of the function y = x*x *sin(x) for x belonging to <x1, x2> with step dx starting from x1. For each x calculate maximum value and minimum value of y for <x1, x> and the difference between maximum and minimum values.