1. Use Heron’’s formula for finding the area of a triangle (see below). Consider

WRITE MY ESSAY

1. Use Heron’’s formula for finding the area of a triangle (see below). Consider

1. Use Heron’’s formula for finding the area of a triangle (see below). Consider writing out your variables and functions on a scratch piece of paper before you start coding. You will have five variables – three for the sides, one for the semi-perimeter (s), and one for the final result (area). Use the variable names side1, side2, and side3 to represent the three sides. Use the variable name s to represent the semi-perimeter. Finally, use the variable name area to represent the area. HINT: Use the Math.sqrt function to calculate the area. 2. To round the area to the nearest tenth, create a new variable to represent the new rounded calculation, and use the toFixed( ) method. Use the variable name round to represent the final result

WRITE MY ESSAY

admin Avatar

Leave a Reply

Your email address will not be published. Required fields are marked *