Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Object Oriented Create a class that models a rectangle located in the first Cartesian quadrant. The class should store information about a rectangle such

Java Object Oriented

Create a class that models a rectangle located in the first Cartesian quadrant. The class should store information about a rectangle such that it can be drawn in an X,Y cartesian coordinate system, including rectangles which are not aligned parallel to the X-Y axes, that is, they are oriented making an angle with the X axis.

Your class should provide one constructor methods for specifying the rectangle The constructor should receive the rectangle area, the length of the long side, the angle that the long side makes with the X axis, and the coordinates for the vertex closer to the origin and the X-axis.

Your class should provide methods for (computing and) returning the area of the rectangle

Your class should provide methods for (computing and) returning the length of short and long side sides of the rectangle

Your class should provide methods for (computing and) returning the angle it's long side makes with the horizontal (x axis)

Your class should provide methods for (computing and) returning the coordinates for all the corners of the rectangle starting with the coordinate closer to the origin and traversing the rectangle in counter clockwise order.

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 Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions

Question

LO3 Discuss the steps of a typical selection process.

Answered: 1 week ago