minnieme
asked on
frequency distribution
How do I get a C program to 1) input any number of one or two digit integer numbers. I.e., each numb is 0 to 99. 2) The program counts the number of these values which falls into 10 "bins" where the bins are 0-9, 10-19, 20-29, etc. ......80-89, 90-99 3)The program computes the average of allthe numbers entered. 4)The program outputs the average and frequency distribution that looks like this (for example):
0-9 x
10-19 xxx
20-29 xxxx
30-39 xxxxxx
40-49 xxxxxxx
50-59 xxxxxxx
60-69 xxxxxxxxxxx
70-79 xxxxxx
80-89 xxxxxxxxx
90-99 xxx
Please help in any way that you can.
0-9 x
10-19 xxx
20-29 xxxx
30-39 xxxxxx
40-49 xxxxxxx
50-59 xxxxxxx
60-69 xxxxxxxxxxx
70-79 xxxxxx
80-89 xxxxxxxxx
90-99 xxx
Please help in any way that you can.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
yeah I do agree It will be more efficient
Thanx
Thanx
bin[number/10]++