Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in C++ fast plzzz A rhombus is a special type of parallelogram. A rhombus has four equal sides and its diagonals bisect each other at

image text in transcribed

in C++ fast plzzz

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 1 3 34 4 9 10 20 Figure 1: Rhombus Figure 2: Input file "diagonals.txt" 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 = pag. 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 = )? 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 pg Area Sides Perimeter 68 24 5 20 1 3 1.5 1.58114 6.32456 3 4 6 2.5 10 4 9 18 4.92443 19.6977 10 20 100 11.1803 44.7214 Process exited after 0.4043 seconds with return value 0 Press any key to continue

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

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

Students also viewed these Databases questions

Question

Assessment of skills and interests.

Answered: 1 week ago

Question

Psychological, financial, and career counseling.

Answered: 1 week ago