Question: Solve this by using JAVA and show the OUTPUT Answer everything and read directions carefully! !!!!!! DO NOT USE SCANNER except to test the class

Solve this by using JAVA and show the OUTPUT
Answer everything and read directions carefully!
!!!!!! DO NOT USE SCANNER except to test the class !!!!!!!
 Solve this by using JAVA and show the OUTPUT Answer everything
and read directions carefully! !!!!!! DO NOT USE SCANNER except to test

1 More Than You Ever Wanted to Know About Pentagons Your assignment here is to create a Pentagon class to represent a Pentagon, which has five sides and all angles are of equal length. You will need to create the instance variables, constructors, and instance methods for the Pentagon. regular 1.1 Instance Methods There is only one thing that distinguishes any regular pentagon from another how big its sides are. Creat the size of the sides. You only r Make size private. e an instance variable called size to represent one since they are all the same length. If you cannot figure out this very first part do not continue any further with the assignment under any circumstances. Go back and rewatch the lectures or ask for help. 1.2 Constructors We want to set the size of the pentagon when we create it. Create a single constructor for Pentagon, which should take in a double. Use this double to set size of the pentagon. 1.3 Instance Method Complete the following instance methods: 1.3.1 Setters and Getters Create one setter and one getter method for the instance variable size. 1.3.2 Perimeter Create a method that calculates and returns the perimeter of the pentagon. 1.3.3 Height Create a method that calculates and returns the height of the pentagon. The pentagon's height is the distance from once corner to its opposite side

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!