Question: 4. Write a program that performs the following: a. Accept the coordinates of the points A and B of the triangle shown in the

4. Write a program that performs the following: a. Accept the coordinates of the points A and B of the triangle shown in the 

4. Write a program that performs the following: a. Accept the coordinates of the points A and B of the triangle shown in the figure. Print it out. b. Determine the area of the triangle. Print the result. c. Determine the circumference of the triangle. Print the result. d. What is the length of the side of a square that has the same area as the triangle? Print the result. B A X

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 Programming Questions!