answersLogoWhite

0

Here's a simple pseudo code to calculate the area of a triangle given two sides and the included angle:

START
  INPUT sideA
  INPUT sideB
  INPUT angleC  // angle in degrees
  area = 0.5 * sideA * sideB * SIN(angleC)
  OUTPUT area
END

This assumes you have a function to convert the angle to radians if necessary, as most programming languages require angles in radians for the sine function.

User Avatar

AnswerBot

4mo ago

What else can I help you with?

Continue Learning about Engineering
Related Questions

How do you find the range of a triangle?

to find the range of values of triangle. Add the value of the sides of the given sides...is it?


How do you calculate the value of y in a triangle?

It depends on what y is.


The lengths of the 3 sides of a certain triangle are related as shown below where n is the length of the shortest side of the triangle. 0.5n 1.5n 2.5n Which of these name the lengths of the sides for?

The lengths of the 3 sides of a certain triangle are related as shown below, where n is the length of the shortest side of the triangle.0.5n, 1.5n, 2.5nWhich of these name the lengths of the sides for another triangle, similar to the first triangle, for any value n ≥ 1?


How do you find unkown value sides to a triangle?

The answer depends on the information that you do have. There are many different methods.


Write a program to calculate area of triangle and check whether entered sides can make triangle or not..?

#include <stdio.h> main() { int r,b,h; printf("Enter the value of Base and Hight"); scanf("%d%d",&b,&h); r = ((b*h)/2); printf("Area of Triangle=%d",r); }


Can a right triangle have all equal sides?

According to the Pythagorean theorem, the square of the hypotenuse of a right triangle is equal to the sum of the squares of the other two sides or, c^2 = a^2 + b^2. Since there is no single value where a = b= c, a right triangle cannot have all equal sides.


In triangle abc what is the value of x?

That will depend on other values of the triangle because a triangle has 3 sides and 3 interior angles that add up to 180 degrees


What is the formula to calculate the perimeter of a triangle with b equals 5cm h equals 4cm and an unknown side?

If you know only the base and height, you have two unknown sides and it is not possible to calculate the perimeter. The perimeter can have any value greater than or equal to 5+sqrt(89) cm.


How do find area triangle usibg functions?

You define a function with an return value. The return value would be the area of the triangle, and the parameters are the width/length and height of the triangle. Inside the function you would define how you would calculate the area, and then return the result.


If AB 5 and BC 8 then AC?

If these are sides of a triangle then AC can have any value in the interval (3, 13).


What are some example problems of interior angle of a triangle?

The measure of the sides of the triangle is 12x +2, 13x +1 and x-15. Give the value of each side.


Can a triangle exist whose sum of two sides is equal to third side?

No. No Triangle exists where the sum of 2 sides of the triangle is either equal to the third side or is less than the third side.Even, if we consider Right-Angled Triangle, then according to Pythagoras Theorem, c2= a2+b2, where c=Hypotenuse, a and b are the other 2 sides of the triangle. Now, if we consider the minimum +ve value of a and b which is greater than 0, i.e, if we consider a = 1 unit and b = 1 unit, then the value ofc = square-root of (1^2 + 1^2) = square-root of (1 + 1 ) = square-root of (2) which is < than the sum of the value of side a and b. Since the value of square-root is additive in nature, for any +ve value of a and b, this result stands true.Hence, The Triangle Inequality Theorem states that the sum of any 2 sides of a triangle must be greater than the the measure of the third side. This rule must be satisfied for all 3 permutations of the sides. In other words, as soon as you know that the sum of 2 sides is less than the measure of a third side, then you know that the sides do not make up a triangle .Regards,Suvarthi DasBirati, Kolkata-81