PLEASE HELP!!! TRYING TO GET THIS DONE & I DONT UNDERSTAND write a number of C++
ID: 3678440 • Letter: P
Question
PLEASE HELP!!! TRYING TO GET THIS DONE & I DONT UNDERSTAND
write a number of C++ functions, and a test driver ( harness ) to test them with.
1)
double distanceAndVector( double x1, double y1, double x2, double y2, double & deltaX, double &deltaY );
--Returns the distance between ( x1, y1 ) and ( x2, y2 ).
--Stores in ( deltaX, deltaY ) the vector pointing from ( x1, y1 ) to ( x2, y2 ).
2)
int xCosXySinY( int nRows, int nCols, double x[ ], double y[ ], double result[ ][ MAXCOLS ] );
--Fills in result[ ][ ] by calling double xCosXySinY( double x, double y );
--The array passed to result must have MAXCOLS columns.
--nRows and nCols should be the number of rows and columns of result to fill. They should be checked for validity.
--x[ ] holds the X values to be used for each row.
-- y[ ] holds the Y values to be used for each column.
Explanation / Answer
2.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.