Hello all, I really need help with this assignment. I don't know where to start. This is the final part of a team project of which I have been able to accomplish all of the other tasks, but for this I don't know where to start. All of task 4 is my assignment. Here are the instructions:
Task 4: Create a function named CoordinatePairToCartesianPair that transforms latitude/longitude coordinates in decimal degrees (a pair of type Double) into an xy point in pixels (a pair of type Integer).
Task 4a: Create the function CoordinatePairToCartesianPair and add the following comment:
Formula for transforming coordinates into screen positions
Transform equations determined using SPSS Stepwise Regression
x = int( -18.886 × lon - 17.777 × lat + 0.178 × lat × lon + 2173.268 )
y = int( -15.183 × lat + 14.772 × lon - 0.073 × lon² + 48.703 )
Write the code for this function with input parameter CoordPair as type Coordinates , and a return value of type Point.
Task 4b: Right click anywhere within the CoordinatePairToCartesianPair function in Airports.vb and add a unit test to the unit test framework. Modify the code to set CoordPair.Lat = 33.63944, CoordPair.Lon=84.42806, expected.X = 486, and expected.Y=265. You may want to test each component of the actual value separately, but you dont need to since a delta isnt required.
Task 4c: Run the unit tests to make sure they all run.
Whomever is able to assist in a fashion that I may understand will be greatly appreciated. Time is of the essence as I do not want to hold up my team. Thanks.
Task 4: Create a function named CoordinatePairToCartesianPair that transforms latitude/longitude coordinates in decimal degrees (a pair of type Double) into an xy point in pixels (a pair of type Integer).
Task 4a: Create the function CoordinatePairToCartesianPair and add the following comment:
Formula for transforming coordinates into screen positions
Transform equations determined using SPSS Stepwise Regression
x = int( -18.886 × lon - 17.777 × lat + 0.178 × lat × lon + 2173.268 )
y = int( -15.183 × lat + 14.772 × lon - 0.073 × lon² + 48.703 )
Write the code for this function with input parameter CoordPair as type Coordinates , and a return value of type Point.
Task 4b: Right click anywhere within the CoordinatePairToCartesianPair function in Airports.vb and add a unit test to the unit test framework. Modify the code to set CoordPair.Lat = 33.63944, CoordPair.Lon=84.42806, expected.X = 486, and expected.Y=265. You may want to test each component of the actual value separately, but you dont need to since a delta isnt required.
Task 4c: Run the unit tests to make sure they all run.
Whomever is able to assist in a fashion that I may understand will be greatly appreciated. Time is of the essence as I do not want to hold up my team. Thanks.