The first requirement is to create and populate an array with
N
(provided by the user) values in the
[600..700]
range.
You may choose
how to populate such an array. One alternative is constantly increasing values, e.g.
const double XMin=600.0;
const double XMax=700.0;
double [] x = new double[N];
for (int n=0; n<N; ++n)
{
x[n] = XMin + n*(XMax-XMin)/(N-1);
}
Now, you have the
x
array.
In order to have the corresponding
y
one, compute the given formula for every
x
item, keeping track of the maximum value.
The final step, it is just matter of formatting.