(Geometry: polygon subareas) A convex 4-vertex polygon is divided into four triangles, as shown in Figure 8.8. V2 (x2, y2) V1 (x1, y1) V3 (x3, y3) V4 (x4, y4) A 4-vertex polygon is defined by four vertices. Write a program that prompts the user to enter the coordinates of the four ver- tices and displays the areas of the four triangles in increasing order. Here is a sample run:

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 34SA
icon
Related questions
Question
(Geometry: polygon subareas) A convex 4-vertex polygon is divided into four
triangles, as shown in Figure 8.8.
V2 (x2, y2)
V1 (x1, y1)
V3 (x3, y3)
V4 (x4, y4)
A 4-vertex polygon is defined by four vertices.
Write a program that prompts the user to enter the coordinates of the four ver-
tices and displays the areas of the four triangles in increasing order. Here is a
sample run:
Transcribed Image Text:(Geometry: polygon subareas) A convex 4-vertex polygon is divided into four triangles, as shown in Figure 8.8. V2 (x2, y2) V1 (x1, y1) V3 (x3, y3) V4 (x4, y4) A 4-vertex polygon is defined by four vertices. Write a program that prompts the user to enter the coordinates of the four ver- tices and displays the areas of the four triangles in increasing order. Here is a sample run:
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning