Question: This assignment is about 1-D arrays in C. The assignment can be summarized as follows: 1. You need to ask the users about 20 different

 This assignment is about 1-D arrays in C. The assignment can

This assignment is about 1-D arrays in C. The assignment can be summarized as follows: 1. You need to ask the users about 20 different people's ages. a. However, age can should be greater than or equal to 0 and less than or equal to 99 . You should print out a warning for any value outside of this range and want the user to enter another age again for the corresponding person. This process should be repeated until the user enters a valid age. 2. Upon collecting valid ages from the user, you should print the list of ages collected from the user. 3. Then, you should print out some statistics about data, namely, mean, variance and standard deviation of the ages. 4. As a last step you should draw histogram of the ages for the following ranges, 09,1019,20 29,3039,4049,5059,6069,7079,8089,9099. The histogram shows the frequency of the above ranges. Formulas for stats: Mean x=N1i=1Nxi Variance 2=Ni=1N(xix)2 Standard deviation =2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!