Menu

[Solved]Python Design Pseudocode Implement Source Code Program Name Occurrences Determine Whether Q37100708

IN PYTHON ONLY !! Design (pseudocode) andimplement (source code) a program (name it Occurrences) todetermine whether two two-dimensional arrays are equivalent or not.Two arrays are equivalent if they contain the same values in anyorder. The program main method defines two two-dimensional array ofsize 3-by-3 of type integer, and prompts the user to enter integervalues to initialize the arrays.

– The main method calls method isEquivalent()that takes twotwo-dimensional arrays of integer and returns true (boolean value)if the arrays contain the same values in any order, otherwise itreturns false.

– Hint: use a sort method from Lab 14 in developing the solutionfor this problem.

– Document your code and properly label the input prompts andthe outputs as shown below.

Sample run 1:

Array A:

    1   2   3

    4   5   6

    7   8 9

   

Array B:

    1   2   3

    6   5   4

    7   8   9

Judgment: The arrays are equivalent.

Sample run 2:

Array A:

    1   1   1

    1   5   6

    1   1   1

   Array B:

    1   1   1

    1   6   6

    1   1   1

Judgment: The arrays are not equivalent.

Expert Answer


Answer to IN PYTHON ONLY !! Design (pseudocode) and implement (source code) a program (name it Occurrences) to determine whether t… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *