Each year the Department of Traffic Accidents receives accident count reports from a number of cities and towns across the country. Given details of 'n' days, develop an algorithm and write a program...

I want C code and algorithm also..Each year the Department of Traffic Accidents receives accident count reports from a number of cities and towns across the country.<br>Given details of 'n' days, develop an algorithm and write a program to determine the average number of accidents and for each day,<br>print the difference between the number of accidents on that day and average. For example, if the number of accidents is 5 and the<br>values are 10, 12, 15, 13, 5 then average is 11 and the difference of values are 1, 1, 4, 2, 6<br>Use the following functions signature<br>void read_Count(int *, int);<br>float find_Mean(int *, int);<br>void print_Diff(int *, int, float);<br>For example:<br>Test Input Result<br>1<br>1<br>10<br>1<br>12<br>4<br>15<br>13<br>

Extracted text: Each year the Department of Traffic Accidents receives accident count reports from a number of cities and towns across the country. Given details of 'n' days, develop an algorithm and write a program to determine the average number of accidents and for each day, print the difference between the number of accidents on that day and average. For example, if the number of accidents is 5 and the values are 10, 12, 15, 13, 5 then average is 11 and the difference of values are 1, 1, 4, 2, 6 Use the following functions signature void read_Count(int *, int); float find_Mean(int *, int); void print_Diff(int *, int, float); For example: Test Input Result 1 1 10 1 12 4 15 13

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here