I already have a class called Card that represents a standardplaying card deck.
ID: 3617699 • Letter: I
Question
I already have a class called Card that represents a standardplaying card deck. Each card has a suit and a face value.I need to write a program that reads a number n and then reads n*nintegers into an n-by-n two dimensional array and checks to see ifthe numbers form a magic square. In a magic square, the sum of allthe elements in every row, column and along both diagonals is thesame. I already have a class called Card that represents a standardplaying card deck. Each card has a suit and a face value.
I need to write a program that reads a number n and then reads n*nintegers into an n-by-n two dimensional array and checks to see ifthe numbers form a magic square. In a magic square, the sum of allthe elements in every row, column and along both diagonals is thesame.