Question
Project 2: (Pattern Recognition)Consecutive four equal numbers Coding Name: PatterRecognition.java Problem Description: Write the following function that tests whether a two-dimensional list has four consecutive
Project 2: (Pattern Recognition)Consecutive four equal numbers
Coding Name: PatterRecognition.java
Problem Description:
Write the following function that tests whether a two-dimensional list has four consecutive numbers of the same value, either horizontally, vertically, or diagonally. You will need a pseudocode, flowchart and UML diagram.
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 list and then the values in the list and displays True if the list contains four consecutive numbers with the same value. Otherwise, display False. Here are some examples of the true cases:
Doc1.jpeg Compatibility Mode Saved to this PC Sign in -0 Insert Design Layout References Mailings Review View Help Tell me what you want to do Share File Home Cut Copy Replace Paste ,iti. Nor al TNo Spac, tending 1 Heading 2 Title Subtitle Subtle Em, Emphasis; Select Fonmat Painter Clipboard Font Paragraph Styles Editing 0 10 3 1 6 1 0 1 6 8 6 0 1 5 6 21829 5 521829 5 6 21629 9 6 2 18 29 6 5 611 91 65611 91 6 5 661 91 6 9 61191 13614 07 1 561407 1 361407 1 391407 3 3 3 3 4073 5 3 3 407 3 6 3 3 4073 3 3 9 4 0 7 0 1 0 3 1 6 1 0 1 6 86 0 1 0 1 0 3 1 6 1 0 168 6 0 1 0 1 0 3 1 6 1 0 168 6 0 1 Page 1 otl 0 words +100%Step 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