PLEASE USE MATLAB TO SHOW ALL WORK THANK YOU A PICTURE OF YO

PLEASE USE MATLAB TO SHOW ALL WORK, THANK YOU!!! (A PICTURE OF YOUR WORK WOULD BE GREAT!)

The area of a triangle can be computed as follows: A = squareroot s(s - a)(s - b)(s - c) Where a, b and c are the sides of the triangle and s = a + b + c/2, Your main task is to write a small program that will ask the user to input a, b and c (one at a time). After the inputs, the program will then calculate s and the Area (A) and display them (both s and A). Run you program with the following values and print your code and results. a = 40 b = 50 c = 33 a = 12 b = 0 c = 21 a = 21 b = 33 c = 11

Solution

prompt = \'Please input a, b and c \';
a = input(prompt)
b = input(prompt)
c = input(prompt)
s=(a+b+c)/2;
A= sqrt(s*(s-a)*(s-b)*(s-c))

This program will calculate the area.

PLEASE USE MATLAB TO SHOW ALL WORK, THANK YOU!!! (A PICTURE OF YOUR WORK WOULD BE GREAT!) The area of a triangle can be computed as follows: A = squareroot s(s

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site