No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
This code calculated the variance to be 9.75. It really is 9.3, what am I doing wrong? static double computeVariance(ref double Variance, params int[] intValues) { int sum = 0; for (int n = 0; n < intValues.Length; n++) { sum += intValues[n]; } double avg = sum / intValues.Length; … |
|
Here is the assignent: Sort the integer elements within the array from lowest (element 0) to highest (element 4). Do not use the preexisting Array.Sort method; code your own. Output the sorted array as follows: Element 0 => smallest value Element 1 => next smallest value Element 2 => next … |
|
Re:
Hello, my current assignment states this: "Modify the console application you created in HW1 in the following manner. Instead of using five Console.ReadLine() statements to read the user’s input into the five variables, use one Console.ReadLine() statement that’s inside a loop that executes five times. The rest of your code … |