Question: Write a program to calculate the area difference between two right triangles. a.(10')Use script file, named as YourNameQuiz3.m, Do not write your codes in command

 Write a program to calculate the area difference between two right

Write a program to calculate the area difference between two right triangles. a.(10')Use script file, named as YourNameQuiz3.m, Do not write your codes in command window!!! b.(40") the program accepts four variables a, b, x and y by uses' input from keyboard (hint: input()) a and b are the two shorter sides of first triangle x and y are the two shorter sides of second triangles C. (20') use fprintf to show answer, round the final number as integer, no decimal digitals, for example: 'The area difference between two right triangles = 3.' d.(10') test your program. Run your program and input the numbers in command window. a=5, b=7.5, x=8.4, y=1.9 e. (20") Attach your codes from script file and result from command window. Insert the screenshot image by above icon 'Insert'--> 'Image'--> 'upload image'. A b a Area: R= 1/2*a*b Perimeter: P = a+b+c Pythagorean Theorem: a^2 + b^2 = c^2

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!