cout << “Flight-path angles are in ascending order.” << endl;
else
{
cout << “Out of order flight-path angles are being reordered.” << endl;
reorder(angle,coef,index);
}
/* Tell user the range of angles. */
return 0;
}
/*——————————————————————–*/
/* This function verifies that the flight-path angles are in */
/* ascending order. The function returns a zero if the angles */
/* are not in order and a 1 if they are in order. */
}
/*——————————————————————–*/
/* This function reorders the values in x so that they are */
/* in ascending order and the relationship between x and y is */
/* preserved. */
void reorder(double x[], double y[], int num_pts)
{