Question: IN JAVA Create a boolean to check if all angles in a parallelogram are equal to 90 degrees, the 4 angles are put in as
IN JAVA
Create a boolean to check if all angles in a parallelogram are equal to 90 degrees, the 4 angles are put in as an array
i have an example boolean thats similar but different where it's checking if the opposite angles in a paralleogram are equal, please try to edit this so it can show if all angles are = 90
example:
public boolean isOppositeAnglesEqual (Object[ ] deg) { boolean oppAnglesEqual = true; Integer[ ] angles = getAngles( ); for (int k = 0; k < angles.length / 2; k++) { if (angles[k] != angles[k + 2]) { oppAnglesEqual = false; break; } } return oppAnglesEqual; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
