Draw a flowchart to find out the area of right angle triangle using formula area = 1/2 * base * height
Answers
Answer:
I will give an answer to this question but make it a learning experience because i know if i don't provide you with the answer, somebody will. We are pretty resourceful. Aren't we?
So, lets begin.
Every solution has 3 basic components:-
Input -> processing-> output
Let us consider our 3 steps.
INPUT- we need b,h(2 variables to store base and height of triangle) as input.
PROCESSING- We need to calculate the area of our triangle.
OUTPUT- We need to print the value of the variable area to the console.
So, firstly read the values of b and h. Check if they aren't zero as we do not want our area to be zero. If they aren't zero, process the value of area with the formula of the area of a triangle.
Area=0.5*b*h
Now, print the value of area to the console.
The algorithm may be created as follows.
Explanation:
like my answer
follow me