Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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 = (-a)(8-6)(8 -c), Where s is the semi-perimeter of the triangle that is a+b+c 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 a +- 2 - vec-(0+ 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

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

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

6. Develop a grievance procedure.

Answered: 1 week ago

Question

The nature and importance of the global marketplace.

Answered: 1 week ago

Question

=+What forms of industrial action are common?

Answered: 1 week ago