Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write a MATLAB function, named calc that will ask the user to enter the lengths of the two legs of a right triangle, calculates

1. Write a MATLAB function, named calc that will ask the user to enter the lengths of the two legs of a right triangle, calculates the area and perimeter of the triangle. The function will accept no parameters, but it would return two values, i.e. area and perimeter. Area and perimeter will be display by a calling script/function to calc. Test your program with the following data: Legs: 10.25, 4.385

2. image text in transcribedUsing GUIDE, create a GUI solution for this problem in MATLAB. It should include the following: 1. Title, located in a static textbox at the top (centered) 2. One edit textbox, used to enter the temperature 3. A static textbox to display the result

Create a program that prompts the user to enter a scalar value for the outside air temperature. If the temperature is equal to or above 80F, send a message to the command window telling the user to wear shorts. If the temperature is between 60F and 80F, send a message to the command window telling the user that it is a beautiful day. If the temperature is equal to or below 60F, send a message to the command window telling the user to wear a jacket or coat

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 Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions