Sample Output void showArray(int arrayRow1[], int arrayRow2[], int arrayRow3[], int size) - accepts 3 int arrays and a size as arguments and displays their content. LO SHU MAGIC SQUARE Example:...


Sample Output<br>void showArray(int arrayRow1[], int arrayRow2[], int arrayRow3[], int<br>size) - accepts 3 int arrays and a size as arguments and displays their content.<br>LO SHU MAGIC SQUARE<br>Example:<br>(arrayRow1)<br>(arrayRow2)<br>(arrayRow3)<br>135<br>Enter the three numbers for row 1: 1 3 2<br>679<br>824<br>Enter the three numbers for row' 2: 5 4 9<br>Enter the three numbers for row 3: 6 7 8<br>bool isMagicSquare(int arrayRow1[], int arrayRow2[], int arrayRow3[], int<br>size) - accepts 3 int arrays and a size as arguments and returns true if all the<br>requirements of a magic square are met. Otherwise, it returns false. First argument<br>corresponds to the first row of the magic square, second argument to the second<br>row and the third argument to the third row of the magic square.<br>1<br>3<br>2<br>4<br>9<br>7 8<br>This is not a Lo Shu magic square.<br>bool checkRange(int arrayRow1[], int arrayRow2[], int arrayRow3[], int<br>size, int min, int max) - accepts 3 int arrays, a size and a min and max value as<br>arguments and returns true if the values in the arrays are within the specified<br>range min and max. Otherwise, it returns false. First argument corresponds to the<br>first row of the magic square, second argument to the second row and the third<br>argument to the third row of the magic square.<br>Do you want to try again? y<br>Enter the three numbers for row 1: 10. 2 3<br>Enter the three numbers for roW: 2: 4 15 6<br>Enter the three numbers for row 3: 7 8 -8<br>bool checkUnique(int arrayRow1[], int arrayRow2[], int arrayRow3[], int<br>size) - accepts 3 int arrays and a size as arguments, and returns true if the values<br>in the arrays are unique (only one occurrence of numbers between 1-9). Otherwise,<br>it returns false. First argument corresponds to the first row of the magic square,<br>second argument to the second row and the third argument to the third row of the<br>magic square.<br>10<br>4<br>7 8 -8<br>2 3<br>15<br>6<br>This is not a Lo Shu magic square.<br>bool checkRowSum(int arrayRow1[], int arrayRow2[], int arrayRow3[], int<br>size) - accepts 3 int arrays and a size as arguments and returns true if the sum of<br>the values in each of the rows are equal. Otherwise, it returns false. First argument<br>corresponds to the first row of the magic square, second argument to the second<br>row and the third argument to the third row of the magic square.<br>Do you want to try again? y<br>Enter the three numbers for row' 1: 4 9 2<br>Enter the three numbers for row 2: 3 5 7<br>Enter the three numbers for row' 3: 8 1 6<br>bool checkColSum(int arrayRow1[], int arrayRow2[], int arrayRow3[), int<br>size) - accepts 3 int arrays and a size as arguments and returns true if the sum of<br>the values in each of the columns are equal. Otherwise, it returns false. First<br>argument corresponds to the first row of the magic square, second argument to the<br>second row and the third argument to the third row of the magic square.<br>9<br>2<br>3<br>8<br>5 7<br>1 6<br>This is a Lo Shu magic square.<br>bool checkDiagSum(int arrayrow1[], int arrayrow2[], int arrayrow3[], int<br>size) - accepts 3 int arrays and a size as arguments and returns true if the sum of<br>the values in each of the array's diagonals are equal. Otherwise, it returns false.<br>First argument corresponds to the first row of the magic square, second argument<br>to the second row and the third argument to the third row of the magic square.<br>Do you want to try again? n<br>Programmer: insert your name here<br>Project #5<br>Date Due: May7, 2021<br>[NOTE: You can create and use more functions as needed.]<br>4 m 00<br>

Extracted text: Sample Output void showArray(int arrayRow1[], int arrayRow2[], int arrayRow3[], int size) - accepts 3 int arrays and a size as arguments and displays their content. LO SHU MAGIC SQUARE Example: (arrayRow1) (arrayRow2) (arrayRow3) 135 Enter the three numbers for row 1: 1 3 2 679 824 Enter the three numbers for row' 2: 5 4 9 Enter the three numbers for row 3: 6 7 8 bool isMagicSquare(int arrayRow1[], int arrayRow2[], int arrayRow3[], int size) - accepts 3 int arrays and a size as arguments and returns true if all the requirements of a magic square are met. Otherwise, it returns false. First argument corresponds to the first row of the magic square, second argument to the second row and the third argument to the third row of the magic square. 1 3 2 4 9 7 8 This is not a Lo Shu magic square. bool checkRange(int arrayRow1[], int arrayRow2[], int arrayRow3[], int size, int min, int max) - accepts 3 int arrays, a size and a min and max value as arguments and returns true if the values in the arrays are within the specified range min and max. Otherwise, it returns false. First argument corresponds to the first row of the magic square, second argument to the second row and the third argument to the third row of the magic square. Do you want to try again? y Enter the three numbers for row 1: 10. 2 3 Enter the three numbers for roW: 2: 4 15 6 Enter the three numbers for row 3: 7 8 -8 bool checkUnique(int arrayRow1[], int arrayRow2[], int arrayRow3[], int size) - accepts 3 int arrays and a size as arguments, and returns true if the values in the arrays are unique (only one occurrence of numbers between 1-9). Otherwise, it returns false. First argument corresponds to the first row of the magic square, second argument to the second row and the third argument to the third row of the magic square. 10 4 7 8 -8 2 3 15 6 This is not a Lo Shu magic square. bool checkRowSum(int arrayRow1[], int arrayRow2[], int arrayRow3[], int size) - accepts 3 int arrays and a size as arguments and returns true if the sum of the values in each of the rows are equal. Otherwise, it returns false. First argument corresponds to the first row of the magic square, second argument to the second row and the third argument to the third row of the magic square. Do you want to try again? y Enter the three numbers for row' 1: 4 9 2 Enter the three numbers for row 2: 3 5 7 Enter the three numbers for row' 3: 8 1 6 bool checkColSum(int arrayRow1[], int arrayRow2[], int arrayRow3[), int size) - accepts 3 int arrays and a size as arguments and returns true if the sum of the values in each of the columns are equal. Otherwise, it returns false. First argument corresponds to the first row of the magic square, second argument to the second row and the third argument to the third row of the magic square. 9 2 3 8 5 7 1 6 This is a Lo Shu magic square. bool checkDiagSum(int arrayrow1[], int arrayrow2[], int arrayrow3[], int size) - accepts 3 int arrays and a size as arguments and returns true if the sum of the values in each of the array's diagonals are equal. Otherwise, it returns false. First argument corresponds to the first row of the magic square, second argument to the second row and the third argument to the third row of the magic square. Do you want to try again? n Programmer: insert your name here Project #5 Date Due: May7, 2021 [NOTE: You can create and use more functions as needed.] 4 m 00
Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here