Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ ...please test and make sure it runs .. thank you Practicu Assignment 3 Direction: Submit the typed source code. Parallelogram For this assignment, you

C++ ...please test and make sure it runs .. thank you
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Practicu Assignment 3 Direction: Submit the typed source code. Parallelogram For this assignment, you will create a Parallelogram class. A parallelogram is a four-sided shapes whose opposite sides are parallel and opposites angles are equal (hence opposite sides are equal). The four (4) types of parallelograms and their properties are listed belovw. Regular Rhombus Square Rectangle Adjacent sides are equal |Adjacent sides are not equal o All right angles o Adjacent sides are not equal Adjacent sids are equal o No right angles No right angles o All right angles The Parallelogram class should have: Public double field named length. Public double field named tridth. Public double field named angle. Public string field named type. Public default constructor that assigns l to both length and tndth 90 to angle and square" to type. Public overloaded constructor that takes two (2) double parameters. The parameters should be assigned to length and width. Furthermore, angle should be assigned 90. Depending on the values of length and width, type should be assigned either "square" or "rectangle" Public overloaded constructor that takes three (3) double parameters. The parameters should be assigned

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_2

Step: 3

blur-text-image_3

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

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions