Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

matlab Problem #1: (30%) 1. (45%) The annual salary of n families varies between $40K and $150K. Perform the follow: a. (15%) Accept the number

image text in transcribed
matlab
Problem #1: (30%) 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. Make sure that the file opened OK, all data was recorded and that the file was closed OK

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

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions

Question

7. It is advisable to do favors for people whenever possible.

Answered: 1 week ago