Question: I've tried implementing this but for some reason my code doesn't run and I can't figure out why. I just want to compare what you
I've tried implementing this but for some reason my code doesn't run and I can't figure out why. I just want to compare what you do with what I have to see where I went wrong


Pseudocode 1. Start 2. Import math module 3. Initialize list of triangles as empty 4. Initialize list areas as empty 5. Start of calculatearea function which takes 3 sides of triangle as argument Calculate area of triangle using heron's formula Add value of area in list areas 8. End of calculate function 9. Start of main function 10 Prompt user to input number of triangles store that in number Initialize i to 0 Start while loop when number>0 12 13 14 15 16 17 18 19 20 21. End of main function 22. Main( 23. End Decrease number by 1 Increase i by 1 Print "For triangle ",i,. Print "Enter 15t, 2nd and 3rd side" Take user input and store values of sides in a, b, c Call user defined function calculatearea(a,b,c) Sort list areas Print the largest area
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
