public class DataStatistics {_x000D_
_x000D_
public static void main (String[] args) {_x000D_
_x000D_
// Data source: http://www.math.hope.edu/swanson/data/tests2.txt_x000D_
_x000D_
long[] xValues = { 85, 99, 99, 81, 69, 84, 79, 94, _x000D_
85, 64, 69, 67, 53, 71, 70, 74, _x000D_
89, 77, 90, 83, 92, 89, 70, 78, _x000D_
96, 99, 77, 85, 57, 74, 94, 81, _x000D_
53, 60, 73, 87, 82, 44, 82, 54 };_x000D_
_x000D_
long[] yValues = { 94, 82, 95, 79, 90, 93, 81, 95, _x000D_
91, 89, 92, 89, 82, 87, 42, 68, _x000D_
84, 84, 95, 69, 84, 82, 70, 88, _x000D_
69, 81, 98, 82, 59, 85, 97, 79, _x000D_
69, 91, 62, 91, 98, 81, 99, 98 };_x000D_
_x000D_
// Normally, it would not be necessary to create a_x000D_
// new variable for holding array length because _x000D_
// you could simply use the ".length" expression._x000D_
// Here, however, it makes sense to do so because _x000D_
// both arrays have the same length and we will _x000D_
// be using that value in our calculations._x000D_
long len = xValues.length;_x000D_
_x000D_
_x000D_
// The code below can be uncommented for testing, _x000D_
// though it should not be in the final version _x000D_
// of the program:_x000D_
_x000D_
/* _x000D_
for (int i = 0; i < xValues.length; i++)_x000D_
System.out.printf("DP #%2d: X = %d, Y = %d%n", i+1, xValues[i], yValues[i]);_x000D_
*/_x000D_
_x000D_
// YOUR CODE GOES HERE_x000D_
// If you declare anymore numeric variables, let_x000D_
// them all be of the long type. This does not _x000D_
// apply to for-loop variables, which should still _x000D_
// be of type int_x000D_
_x000D_
}_x000D_
_x000D_
}
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!
NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.