Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program that takes as input 5 numbers and outputs the average and standa

ID: 3531739 • Letter: W

Question

Write a program that takes as input 5 numbers and outputs the average and standard deviation of the numbers. The 5 numbers must be taken from an input file. The outputs must be printed to an output file.

Also, print out at least 3 statements to the screen letting the user know how the program is running. In other words, let your user know when you are getting the input numbers, calculating the numbers and printing to the output file. For example, you can print to the user screen statements such as,

Explanation / Answer

void main()
{
int x1,x2,x3,x4,x5;
float x,d,p,q;
printf("enter the input");
scanf("%d",&x1);
scanf("%d",&x2);
scanf("%d",&x3);
scanf("%d",&x4);
scanf("%d",&x5);
p=mean();
q=deviation();
printf("%f",p);
printf("%f",q);
mean()
{
x= x1 + x2 + x3 + x4 + x5)/5;
return x;
}
deviation()
{
d=sqrt[ ( (x1-x)^2 + (x2-x)^2 + (x3-x)^2 + (x4-x)^2 + (x5-x)^2 ) /5];
return d;
}
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote