size) - accepts 3 int arrays and a size as arguments and displays their content. Example: 135 (arrayRow1) 679 (arrayRow2) 824 (arrayRow3) 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. • 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. • 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. • 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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
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
Transcribed Image 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
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education