Question: Using MATLAB only, write the following code: 1. (45%) The annual salary of n families varies between $40K and $150K. Perform the follow: a. (15%)

Using MATLAB only, write the following code: Using MATLAB only, write the following code: 1. (45%) The annual salary

1. (45%) The annual salary of n families varies between $40K and $150K. Perform the follow: a. (15%) Accept the number n from the user and verify it is between 20 and 30. Once the input is validated and define an appropriate array to accommodate the salaries b. (5%) Fill the array with a random numbers in the range of salaries given above. Print out the array c. (15%) Find the maximum, the minimum and the average salary and print them the results. Print out the results. DO NOT USE BUILT IN FUNCTIONS d. (10%) Find how many families have salary above the average salary and print it out

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!