Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using Matlab Upload the text file Homework5Prob3 to MATLAB and in one script write the code that does the following: a) Separate the data into

image text in transcribed using Matlab
Upload the text file Homework5Prob3 to MATLAB and in one script write the code that does the following: a) Separate the data into 3 variables by column: Student_ Number (1-50), Age, and Gender (1 = Female, 0 = Male) b) Determine how many of the students in the file (out of 50) that are in the target age range for OH WOW! (ages 2-12) c) display the results in the command window: "There are xx students that are in OH OW's target age range" d) Create a histogram of the ages of students in the data fie (give a meaningful title and labels) e) Determine how many of the students in the fie are male and how many are female f) Display the results in the command window. "There are xx female and YY male students in the data set." g) Create a pie chart for the gender distribution in the data set (give a meaningful title) h) Ask the user to enter a number between 1-50 for the student #. Student_Number. Error check to ensure that the value entered does fall within the expected range (1-50), and if it does not then ask them to reenter a value (make sure that the user could enter incorrect values multiple times without making the program stop). i) Display the results from step-h: "Student number XX is female/male and YY years old

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_2

Step: 3

blur-text-image_3

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

Accounting And Auditing Research And Databases Practitioner's Desk Reference

Authors: Thomas R. Weirich, Natalie Tatiana Churyk, Thomas C. Pearson

1st Edition

1118334426, 978-1118334423

More Books

Students also viewed these Databases questions

Question

What is CERN? Why is it important to the world of science?

Answered: 1 week ago

Question

Describe the use of tests in the selection process.

Answered: 1 week ago

Question

Determine the amplitude and period of each function.

Answered: 1 week ago

Question

=+Where does the focus of labor relations lie? Is it collective

Answered: 1 week ago