Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c write C++ PROGRAMME. And give me between 50 minute please A rhombus is a special type of parallelogram. A rhombus has four equal sides
c
write C++ PROGRAMME. And give me between 50 minute please
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. 6 8 1 3 34 49 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 = JC)* + (3)? Given the sample output in Figure 3, your program should be able to produce the exact copy of the outputStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started