Question: TASK 4 : Determine magic square classification ( 1 0 2 0 min ) Determine if the matrix is a form of magic square. Each
TASK : Determine magic square classification min
Determine if the matrix is a form of magic square. Each criterion below defines a classification of magic square. If none of the criteria are met, produce a warning informing the user that they have not entered a magic square, and ask the user if they wish to try entering a new matrix. Rerun the entire program if the user chooses to enter a new matrix.
Determine the classification of the magic square using the following requirements:
If each row and column sum to the same value the magic constant the magic square is classified as semimagic
If in addition to criterion both diagonals sum to the same value as the rows and columns, the magic square is classified as normal
If in addition to criteria and the values in the square are only the sequence of numbers from to for example, the values in a x square would be : and for a x square would be : the magic square is classified as perfectTASK : Determine magic square classification min
Determine if the matrix is a form of magic square. Each criterion below defines a classification of magic square. If none of the criteria are met, produce a warning informing the user that they have not entered a magic square, and ask the user if they wish to try entering a new matrix. Rerun the entire program if the user chooses to enter a new matrix.
Determine the classification of the magic square using the following requirements:
If each row and column sum to the same value the magic constant the magic square is classified as semimagic
If in addition to criterion both diagonals sum to the same value as the rows and columns, the magic square is classified as normal
If in addition to criteria and the values in the square are only the sequence of numbers from to for example, the values in a x square would be : and for a x square would be : the magic square is classified as perfect
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
