Question: Write a C++ program using 1 or more classes that will calculate and display the areas and perimeters of the regular polygons (congruent sides and

Write a C++ program using 1 or more classes that will calculate and display the areas and perimeters of the regular polygons (congruent sides and interior angles) listed below. Allow side lengths to be specified as positive floating point numbers. Be sure to write a thorough test program. (You mayinclude all code in one file, instead of having a header file and separate implementation files.

equilateral triangle

square

regular pentagon

regular hexagon

regular heptagon

regular octagon

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!