Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 output

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

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions

Question

How do we organise for international logistics?

Answered: 1 week ago

Question

What are the logistics implications of internationalisation?

Answered: 1 week ago