Im working on this program where i need to automatically generate 10 random numbers using an array, but the user will decide the range of the random numbers by choosing a min and max value.
Then I need to sort the array, find the median and the user needs to call upon a arrau location for the value (user can choose to see the value of array 4)
Below is my code,
the program runs without errors but it's not functioning properly.
Problems;
1) I set up my array to show me printout the random numbers after its been sorted, array[2] is way off. Everytme if run the code its always that location that has some crazy negative number.
2) My median formula is not working, i set it up so i sums up array[4] and [5] then divide it by two, thus getting the median.
3) i don't know how to set it up so the user can call a location for the value.