once again teaching myself to write using C, damn I miss C++
the question is to write a program that can calculate the first, second, and third quartiles for a set of data. I need to declare 2 arrays, each having 3 columns. The quartiles will be calculated for only one of the three columns of each array. The user chooses which column of each array to process.
to start off I wanted to use 4 functions;
1 to check input
1 to perform bubble sort
1 to calculate the quartiles
1 for main
this is all i have so far
do
{
still_changing = 0;
for(i = 0; i < 3; i++)
if(data[i+1] < data[i])
{
temp = data[i];
data[i] = data[i+1];
data[i+1] = temp;
still_changing = 1;
printArray(data);
}
} while (still_changing);
}