Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment 3 Direction: Submit the typed source code. Parallelogram For this assignment, you will create a Parallelogram class. A parallelogram is a four-sded shapes whose

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Assignment 3 Direction: Submit the typed source code. Parallelogram For this assignment, you will create a Parallelogram class. A parallelogram is a four-sded shapes whose te sides are parallel and opposites angles are equal (hence opposite sides are equal). The four (4) types of parallelograms and their properties are listed below. Regular Rhombus Square Rectangle Adjacent sides are equal-Adjacent sides are equal-Adjacent sides are not equal o No right angles equal | o Adjacent sides are not o No right angles o All right angles o All right angles The Parallelogram class should have Public double field named length. Public double field named width. Public double field named angle. Public string field named type. Public default constructor that assigns 1 to both length and undth, 90 to angle and square to type. O 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, ch Assignment 3 Direction: Submit the typed source code. Parallelogram For this assignment, you will create a Parallelogram class. A parallelogram is a four-sded shapes whose te sides are parallel and opposites angles are equal (hence opposite sides are equal). The four (4) types of parallelograms and their properties are listed below. Regular Rhombus Square Rectangle Adjacent sides are equal-Adjacent sides are equal-Adjacent sides are not equal o No right angles equal | o Adjacent sides are not o No right angles o All right angles o All right angles The Parallelogram class should have Public double field named length. Public double field named width. Public double field named angle. Public string field named type. Public default constructor that assigns 1 to both length and undth, 90 to angle and square to type. O 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, ch

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

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions