(Geometry: area of a triangle) Write a program that prompts the user to enter three points (x1, yl), (x2, y2), (x3, y3) of a triangle and displays its area. The formula for computing the area of a triangle is s = (sidel + side2 + side3)/2; V s(s – sidel)(s – side2)(s – side3) area =

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter12: Points, Classes, Virtual Functions And Abstract Classes
Section: Chapter Questions
Problem 2SA
icon
Related questions
Question
(Geometry: area of a triangle) Write a program that prompts the user to enter three
points (x1, yl), (x2, y2), (x3, y3) of a triangle and displays its area. The formula
for computing the area of a triangle is
s = (sidel + side2 + side3)/2;
V s(s – sidel)(s – side2)(s – side3)
area =
Transcribed Image Text:(Geometry: area of a triangle) Write a program that prompts the user to enter three points (x1, yl), (x2, y2), (x3, y3) of a triangle and displays its area. The formula for computing the area of a triangle is s = (sidel + side2 + side3)/2; V s(s – sidel)(s – side2)(s – side3) area =
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer