Question: Coding C++ : Write a complete Object - Oriented Program to solve for the area and perimeter of Rhombus. The clas name is Rhombus. The

Coding C++ : Write a complete Object - Oriented Program to solve for the area and perimeter of Rhombus. The clas name is Rhombus. The input is from the datafile "diagonals.txt". The data members of the program are private data members. The area, perimeter and side length should be the member function of the created class. The area of the rhombus is given by the following formula, area where p is the short diagonal length and q is the long diagonal length of the respectively as shown in Figure 1. The formula for rhombus perimeter is as given perimeter = 4a, where a is the side length as shown in Figure 1. Use Pythagorean Theorem to find the side length a, where a =Coding C++ : Write a complete Object - Oriented Program to solve

A rhombus is a special type of parallelogram. A rhombus has four equal sides and its diagonals bisect each other at right angles as shown in Figure 1. 68 13 34 4 9 10 20 Figure 1: Rhombus Figure 2: Input file diagonals.txt" 2 Write a complete Object-Oriented Program to solve for the area and perimeter of Rhombus. The clas name is Rhombus. The input is from the datafile "diagonals.txt". The data members of the program are private data members. The area, perimeter and side length should be the member function of the created class. The area of the rhombus is given by the following formula, area = m . where p is the short diagonal length and q is the long diagonal length of the respectively as shown in Figure 1. The formula for rhombus perimeter is as given perimeter = 4a, where a is the side length as shown in Figure 1. Use Pythagorean Theorem to find the side length a, where a = Ve) +() Given the sample output in Figure 3, your program should be able to produce the exact copy of the output. Calculating the Rhombus Area and perimeter pa Area Sides Perimeter 6 8 24 5 20 1.5 1.58114 6.32456 2.5 10 49 18 4.92443 19.6977 10 20 100 11.1803 44.7214 1 3 3 4 6 Process exited after 0.4043 seconds with return value o Press any key to continue ... Figure 3: Sample output

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!