Question: Write a programming in C++ Including:- 1) Functions 2) Arrays 3) Array of Objects 4) Pointers 5) Classes 6) Mathematical Equations Heron's formula states that

 Write a programming in C++ Including:- 1) Functions 2) Arrays 3)

Write a programming in C++ Including:- 1) Functions 2) Arrays 3) Array of Objects 4) Pointers 5) Classes 6) Mathematical Equations Heron's formula states that the area of a triangle whose sides have lengths a, b, and cis A= Vs(s a)(s b)(8 c), Where s is the semi-perimeter of the triangle; that is, a + b + c S = 2 The formula is credited to Heron (or Hero) of Alexandria, and proof can be found in his book, Metrica, written c. CE 60. It has been suggested that Archimedes knew the formula over two centuries earlier. Since Metrica is a collection of the mathematical knowledge available in the ancient world, the formula may predate the reference given in that work. A formula equivalent to Heron's, namely 62 A= 22-(+ 2 was discovered by the Chinese independently of the Greeks. It was published in Mathematical Treatise in Nine Sections (Qin Jiushao, 1247). As a programmer, you are required to write a code to solve for both Heron's formula and also the formula equivalent to Heron. The requirements of the code are: 1) The code needs to be written in Object-Oriented Programming. 2) The data member of the class is private. 3) The program should have a choice for a user to solve for Heron or Heron equivalent. 4) A constructor is needed to solve for equivalent Heron's formula. 5) User input is required for Heron's formula

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!