Question: IN JAVA!! Create a boolean to check if only 1 pair of opposite sides are parallel in a trapezoid -- (the 4 sides are put

IN JAVA!!

Create a boolean to check if only 1 pair of opposite sides are parallel in a trapezoid -- (the 4 sides are put in as an array)

i have an example boolean that's similar but different where it's checking if all the opposite sides in a parallelogram are parallel, please try to modify this so it can prove that there is only 1 pair of parallel sides in a trapezoid

the example:

public boolean isBothOppositeSidesParallel( ) { boolean allSidesAreParallel = true; for (int z = 0; z < oppSidesParallel.length; z++) { if (oppSidesParallel[z] == false) { allSidesAreParallel = false; break; } } return allSidesAreParallel; }

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!