Question
This is not a question concerning with problem one, but i need helpwith the following: I'm trying to write a program using C++ 2008 express edition,and i have to find the following: maximum, minimum, range, mode(use only two significant figures), median, mean, mean absolutedeviation, standard deviation, and variance. this is thedata: "measured resistances." 45.3 67.8 34.3 51.2 48.5 61.3 59.3 65.1 49.3 42.4 63.5 69.8 71.2 39.8 55.5 53.2 56.7 48.8 61.5 51.2 58.9 63.1 67.5 62.4 52.4 50.2 49.8 56.8 59.7 60.4 45.8 43.8 51.3 54.8 55.1 52.3 56.2 59.7 63.0 46.7 63.1 58.2 41.9 59.2 57.2 67.3 68.2 38.9 51.3 63.8 53.4 58.9 56.3 58.9 53.2 56.8 I'm trying to write a program using C++ 2008 express edition,and i have to find the following: maximum, minimum, range, mode(use only two significant figures), median, mean, mean absolutedeviation, standard deviation, and variance. this is thedata: "measured resistances." 45.3 67.8 34.3 51.2 48.5 61.3 59.3 65.1 49.3 42.4 63.5 69.8 71.2 39.8 55.5 53.2 56.7 48.8 61.5 51.2 58.9 63.1 67.5 62.4 52.4 50.2 49.8 56.8 59.7 60.4 45.8 43.8 51.3 54.8 55.1 52.3 56.2 59.7 63.0 46.7 63.1 58.2 41.9 59.2 57.2 67.3 68.2 38.9 51.3 63.8 53.4 58.9 56.3 58.9 53.2 56.8
Explanation / Answer
please rate - thanks # include # include using namespace std; int main() {int n=48,i,j; double b[n],c,most; int done,tot[n],count,bcount=0,emost; double sum=0,sum1=0,var,mean,max,min,range,std,median,std2; double num[56]={45.3, 67.8,34.3, 51.2, 48.5, 61.3 , 59.3 , 65.1, 49.3 , 42.4, 63.5, 69.8, 71.2 , 39.8, 55.5 , 53.2, 56.7 , 48.8, 61.5, 51.2, 58.9, 63.1, 67.5, 62.4, 52.4, 50.2, 49.8, 56.8, 59.7, 60.4, 45.8, 43.8, 51.3 , 58.2 , 41.9 , 59.2 , 57.2, 67.3, 68.2, 38.9, 63.1, 58.2, 41.9, 59.2, 57.2, 67.3, 68.2, 38.9, 51.3 , 63.8 , 53.4 , 58.9 , 56.3, 58.9, 53.2, 56.8 }; for(i=0; i