Question: JAVA Requirements: In a word file: Analyze each problem; outline the problem and its solution requirements. (Describe the problem including input and output in your

JAVA

JAVA Requirements: In a word file: Analyze each problem; outline the problemand its solution requirements. (Describe the problem including input and output in

Requirements: In a word file: Analyze each problem; outline the problem and its solution requirements. (Describe the problem including input and output in your own words.)) o Design an algorithm to solve the problem. (Describe the major steps for solving the problem.) : Use UML class diagram to model the class in question 2. Using java IDE software, implement the algorithm. Test the code for each problem and verify that the algorithm works; include a screenshot of each program output. Question 01 - Pattern recognition: four consecutive equal numbers (25 points) Write the following method that tests whether a two-dimensional array has four consecutive numbers of the same value, either horizontally, vertically, or diagonally: public static boolean isConsecutiveFour(int[][] values) Write a test program that prompts the user to enter the number of rows and columns of a two- dimensional array then the values in the array, and displays true if the array contains four consecutive numbers with the same value. Otherwise, the program displays false. Here are some examples of the true cases: 010 3 1 61 0 1 6 8 6 0 1 5 6 2 1 8 2 9 6 5 6 1 1 9 1 1 3 6 1 4 0 7 3 3 3 3 4 0 7 01 031 61 0 1 6 8 6 0 1 5 5 2 1 8 29 6 5 6 1 1 9 1 1 5 6 1 4 0 7 3 5 3 3 4 0 7 010 3 1 61 0 1 6 8 6 0 1 5 6 2 1 6 2 9 6 5 6 6 1 9 1 1 3 6 1 4 0 7 3 6 3 3 4 0 7 010 3 1 61 0 1 6 8 6 0 1 9 6 2 1 8 2 9 9 8 6 9 6 1 1 9 1 1 3 9 1 4 0 7 3 3 3 9 4 0 7

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!