Question: C++ Homework 2: ENGR19 Computer Applications in Engineering (Due: 2/9/2023) A triangle is defined by the vertex coordinates and . Write a C++ program that
Homework 2: ENGR19 Computer Applications in Engineering (Due: 2/9/2023) A triangle is defined by the vertex coordinates and . 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 Submit your source code with sample answers as comments electronically to Canvas. Note: Your homework should look like: // Homework 2 // Your name \#include (your source code here) / sample output ... (the result of your program) */
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
