Question: 3. (30 points) a) Create a function M-file named as weather, which does not accept any input arguments, but prompts the user to enter a

 3. (30 points) a) Create a function M-file named as weather,

3. (30 points) a) Create a function M-file named as weather, which does not accept any input arguments, but prompts the user to enter a scalar value for the outside air temperature in degrees Celcius. If the temperature is equal to or above 30C, your program should send a message to the command window telling the user to 'wear shorts'. If the temperature is between 20C and 30C, it should send a message to the command window telling the user that 'it is a beautiful day'. If the temperature is equal to or below 20F, it should send a message to the command window telling the user to 'wear a jacket or coat'. b) Draw the flow-chart of your program. SOLVE WITH GNU OCTAVE

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!