Question: A triangle is defined by the vertex coordinates (x,y), (x,y), and (x3.3). Write a C++ program that will 1. Interactively prompt a user for

A triangle is defined by the vertex coordinates (x,y), (x,y), and (x3.3). Write a C++ program that will 1. Interactively prompt a user for the x and y coordinates at each triangle vertex. 2. Print the triangle vertices in a tidy table. 3. Compute and print the area of the triangle (make sure that it is positive) and its perimeter. 4. Should use functions for area and distances (a, b, and c) between two points. Note: The area of a triangle having side lengths a, b, and c is Area ss-as-b)(s-c) where s a+b+c 2 And the distance between two points can be expressed as (x-2)+(-2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
