Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

EGR 110 Engineering Graphics Due Date: In one week MATLAB Assignment #4 1. Recall your earlier MATLAB program to calculate the 3 angles in a

image text in transcribed
EGR 110 Engineering Graphics Due Date: In one week MATLAB Assignment #4 1. Recall your earlier MATLAB program to calculate the 3 angles in a triangle after prompting the user to enter the three sides. At that time you were not required to check to make sure that the sides were valid. A triangle with sides A, B, and C is valid if all of the following conditions are true: . Co Rewrite your MATLAB program such that it will test for valid inputs using a single test. The program should either print out an error message that the inputs are not valid or else print out the values of the three angles in degrees Run the program 7 times, including 6 cases where the triangle is not valid (corresponding to the 6 cases above) and 1 case where the triangle is valid (use on of the examples provided on the earlier assignment Turn in a printout of the program and a printout showing the 6 test cases. Include plenty of comments in your program. 2. Write a MATLAB program to prompt the user to enter a value of x and y corresponding to the (xy) coordinates of a point in the Cartesian coordinate system. The program should then display one of the following prompts: . The point is on the x-axis . The point is on the y-axis . The point is in the first quadrant . The point is in the second quadrant . The point is in the third quadrant . The point is in the fourth quadrant. Test the program for all 6 cases. Turn in a printout of the program and a printout showing the 6 tes t cases. Include plenty of comments in your program

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

More Books

Students also viewed these Databases questions

Question

1. What is Ebola ? 2.Heart is a muscle? 3. Artificial lighting?

Answered: 1 week ago

Question

9. Describe the characteristics of power.

Answered: 1 week ago

Question

10. Describe the relationship between communication and power.

Answered: 1 week ago