Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started