Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Esam is a student in the math's class, today's lesion was about the areas of Geometric shapes (UASI The theory of the class was about

image text in transcribed

Esam is a student in the math's class, today's lesion was about the areas of Geometric shapes (UASI The theory of the class was about triangle area which called: Heron's formula. For any valid triangle ABC, the area of the triangle is calculated by the following equation: Area = S(S - A)(S-B)(S-C) Where is the half of the perimeter, calculated by the following equation: s A+B+C Esam loves programming and he wants to apply the lesson of Heron's formula. Help Esam in writing a C++ code to solve the case. Use the min, max, sqrt predefined functions Constraints A, B, and C>1 Input Format A, B, and C are the sides of the triangle B Output Format The perimeter of the triangle is: The Area of the triangle is: The maximum side of the triangle is: Sample #1 Input 14 25 18 Output The perimeter of the triangle is: 57 The area of the triangle is: 123.235 The maximum side : 25

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions