Instructions: Calculate and print the area of a triangle given the length of each side using
1. Create a new Python project 2. Import the math library 3. Prompt the user to enter the length of the three sides of a rectangle as integer 4. Calculate the area of the triangle using the following formula:
are the lengths of the sides, and
= ½ the perimeter
NOTE: To get the square root of a number, use the function
defined in the
This function will take a positive number and return a number.
The area of the triangle with sides
5. Print a message to the screen similar to below: Once written, test your program with the following values. b = 5 b = 4 c = 3 a = 56 b = 67 c = 12 a = 34 b = 94 c = 51 If you run into problems, use only calculates valid results.
to trace your program and determine why your program runs incorrectly. Once you have found the reason, use assert statement(s) to ensure your program
6. Ask the TA to check your work.