Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 7Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started