Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Theory And Applications 27th Australasian Database Conference Adc 20 Sydney Nsw September 28 29 20 Proceedings Lncs 9877

Authors: Muhammad Aamir Cheema ,Wenjie Zhang ,Lijun Chang

1st Edition

3319469215, 978-3319469218

More Books

Students also viewed these Databases questions

Question

2. What efforts are countries making to reverse the brain drain?

Answered: 1 week ago