Question: Write a class named Triangle that has data fields A, B, and C. The triangle class takes as arguments A and B then computes C
Write a class named "Triangle" that has data fields A, B, and C. The triangle class takes as arguments A and B then computes C based on the Pythagorean theory = A^2 + B^2 = C^2. Given values for A and B, the Triangle class should compute C. Create a TestTriangle class that tests the Triangle class output.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
