Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Publishing With Filemaker Pro On The Web

Authors: Maria Langer

1st Edition

0201696657, 978-0201696653

More Books

Students also viewed these Databases questions