Question: i just need problem 5. thank you! Problem 3 (7 Points) Create a class called Triangle the has the attributes base, height and corner. Make

 i just need problem 5. thank you! Problem 3 (7 Points)

i just need problem 5. thank you!

Problem 3 (7 Points) Create a class called Triangle the has the attributes base, height and corner. Make corner a Point object and base and height numbers (3 points). Instantiate a Triangle object that represents a triangle with a base of 4, height of 3 and the right (90) corner at (0,0). Assign variables to all attribute values so they show up in the variable explorer (4 points) Problem 5 (10 Points) Create a user defined function that takes Triangle as an argument and returns the hypotenuse and two instances of Point defining the location of the other two corners of the triangle assuming the base and height of the triangle are positive in the horizontal and vertical direction, respectively (7 points). Test you function for the triangle instantiated in Problem #3 (3 points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!