Question: Sample Run 1 Enter row size: 6 Enter column size: 7 0 1 0 3 1 6 1 0 1 6 8 6 0 1

Sample Run 1
Enter row size: 6
Enter column size: 7
0 1 0 3 1 6 1
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
The array has consecutive fours
Sample Run 2
Enter row size: 6
Enter column size: 7
0 1 0 3 1 6 1
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
5 5 5 3 4 0 7
The array does not have consecutive fours
C++ please (Pattern recognition: consecutive four equal numbers) Rewrite the isConsecutiveFour function in Programming Exercise using a vector as follows: bool isConsecutiveFour(const vectorint >>& values) Write a test program like the one in Programming Exercise. Programming Exercise (Pattern recognition: consecutive four equal numbers) Write the following function that tests whether a two-dimensional array has four consecutive numbers of the same value, either horizontally, vertically, or diagonally bool isConsecutiveFour(int va1ues|[7]) Write a test program that prompts the user to enter the number of rows and columns of a two- dimensional array and then the values in the array and displays true if the array contains four consecutive numbers with the same value. Otherwise, display false. Here are some examples of the true cases: 0 1 0 3 1 6 1 0 1 6 8 60 1 5 6 2 1 8 2 9 6 5 6 1191 13 61 4 0 7 3 3 33 4 0 7 0 1 0 3 16 1 016 8 601 5 5 2 1 8 2 9 6 56 1191 1561 4 0 7 3 5 3 3 4 0 7 0 1 0 3 1 6 1 0 16 8601 5 6 2 16 2 9 6 5 6 6191 1 36 1 4 0 7 3633 4 0 7 0 1 0 3 1 6 1 0 16 8 6 01 962 182 9 1 391 4 0 7 3 3 3 9407 C++ please (Pattern recognition: consecutive four equal numbers) Rewrite the isConsecutiveFour function in Programming Exercise using a vector as follows: bool isConsecutiveFour(const vectorint >>& values) Write a test program like the one in Programming Exercise. Programming Exercise (Pattern recognition: consecutive four equal numbers) Write the following function that tests whether a two-dimensional array has four consecutive numbers of the same value, either horizontally, vertically, or diagonally bool isConsecutiveFour(int va1ues|[7]) Write a test program that prompts the user to enter the number of rows and columns of a two- dimensional array and then the values in the array and displays true if the array contains four consecutive numbers with the same value. Otherwise, display false. Here are some examples of the true cases: 0 1 0 3 1 6 1 0 1 6 8 60 1 5 6 2 1 8 2 9 6 5 6 1191 13 61 4 0 7 3 3 33 4 0 7 0 1 0 3 16 1 016 8 601 5 5 2 1 8 2 9 6 56 1191 1561 4 0 7 3 5 3 3 4 0 7 0 1 0 3 1 6 1 0 16 8601 5 6 2 16 2 9 6 5 6 6191 1 36 1 4 0 7 3633 4 0 7 0 1 0 3 1 6 1 0 16 8 6 01 962 182 9 1 391 4 0 7 3 3 3 9407
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
