# Thread: Help !!! need to write program asap

1. ## Help !!! need to write program asap

hi all, im a complete newbie at this programming stuff, i am a 1st year student studying systems engineering and i need to write a program for my programming module, to calculate the mean, standard deviation and error in the mean of a set of numbers, can anyone point me in the write direction i have no idea how to do this

thanks

2. Well you could start with a program which reads in a list of numbers from the user, then prints those numbers back out (just to make sure you read them OK).

Then add something to count how many numbers were input.

Then add the code to perform those calculations.

3. may be you can try this for mean , I have forgotten how do derive the SD for a given set of numbers.

Code:
```int main()
{
int i=0,N=0;
float A[50],sum=0;
printf(" enter the number of terms \n");
scanf("%d",&N);

for(i=0;i<N;i++)
scanf("%f",&A[i]);

for(i=0;i<N;i++)
sum+=A[i];

mean = sum/ N;

printf( " mean = %f \n",mean);

return 0;
}```
write the other two in the same manner. Dont ask for code again.

hi all, im a complete newbie at this programming stuff, i am a 1st year student studying systems engineering and i need to write a program for my programming module, to calculate the mean, standard deviation and error in the mean of a set of numbers, can anyone point me in the write direction i have no idea how to do this