No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
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 …
When I run this: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Assignment_1_ITM_225 { class Program { static void Main(string[] args) { int[] Inputs = new int[5]; int intValue = 0; float Average = 0; double Variance = 0; for (int i = 0; i < Inputs.Length; …
The End.
write.me