Hello, I'm a moderator for this topic. I've been working hard to find a professional to assist you right away, but sometimes finding the right professional can take a little longer than expected. I wonder whether you're ok with continuing to wait for an answer. Please let me know and I will assist further. Thank you!
I am okay waiting for an answer as long as it gets answered by October 13th by 11:00pm
Yes, it can be a right triangle or any type of triangle. I believe right would be the easiest to compute?
Ironically I just checked my e-mail and he added this to the instruction set:
For the triangle problem, you should assume a right triangle. The formula for area is 1/2 * b * h, and the perimeter isb + h + 3rd side. I apologize for any confusion in my wording about "you can assume any triangle". Any triangle has the same formula for area and perimeter, but if it's not a right triangle, there's an extra step you'd need to find the height.For the test data, I'll be using 6 for base, 8 for height, and 10 for the hypotenuse. The perimeter is 24, and the area is the same. One last note, I am grading based on whether the code returns the right results, not on efficiency. But, for efficiency, although both 1/2*(b*h) and (1/2*b)*h yield the same answer, the second is much more efficient, especially for something like little man.