fix my code, it runs and produces an average but my standard deviation output produces: nan tinclude tinclude tinclude tinclude math.h> void stats (int a[]) int sum = 0; float x, sd, avg; int i; for...


fix my code, it runs and produces an average but my standard deviation output produces: nan


tinclude <stdio.h><br>tinclude <stdlib.h><br>tinclude <time.h><br>tinclude math.h><br>void stats (int a[])<br>int sum = 0;<br>float x, sd, avg;<br>int i;<br>for (i=0;i<l0000;i++)<br>{<br>sum te ali];<br>avg = sum/10000;<br>for (i = 0; i < 10000; +i)<br>%3D<br>x t= pov (a[i]<br>avg, 2);<br>sd = sqrtf (x / 10000);<br>printf (

Extracted text: tinclude tinclude tinclude tinclude math.h> void stats (int a[]) int sum = 0; float x, sd, avg; int i; for (i=0;i< 10000;="" +i)="" %3d="" x="" t="pov" (a[i]="" avg,="" 2);="" sd="sqrtf" (x="" 10000);="" printf="" ("average:="" f\n",="" avg);="" printf="" ("standard="" deviation:="" f",="" sd);="" int="" main="" ()="" int="" i,a[10000];="" srand="" (time="" (null)="" );="" for="">

Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here