Problem

(Geometry: area of a triangle) Write a function that returns the area of a triangle using...

(Geometry: area of a triangle) Write a function that returns the area of a triangle using the following header:

const int SIZE =2 ;double getTriang1eArea(const double points[][SIZE]);

The points are stored in a 3 × 2 two-dimensional array points with (points[0] [0] , points[0][1]) for (x1 , y1). The triangle area can be computed using the formula in Programming Exercise. The function returns 0 , if the three points are on the same line. Write a program that prompts the user to enter two lines and display the intersecting point. Here is a sample run of the program:

(Geometry: area ofa triangle) Write a program that prompts the user to enter three points (x1 , y1), (x2 , y2), (x3 , y3) of a triangle and displays its area. The formula for computing the area of a triangle is

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT