Question: I need this code in c++ please ... round Bac 15 A magic square is a grid of numbers where the values in each row

I need this code in c++ please ...

I need this code in c++ please ... round Bac 15 A

magic square is a grid of numbers where the values in each

round Bac 15 A magic square is a grid of numbers where the values in each row 15 column, or diagonal add up to the same sum, known as the "magic 15 number." The example here shows a 15 magic sequence. 15 15 15 15 Magic Square Sequence Other Magic Squares Instructions Write a program that will prompt the user for the integers to fill a 3 x 3 two dimensional array that builds a table such as those shown below. Once the data is entered the program checks to see if the table forms a magic square. When complete have the program prompt the user to see if they want to test another square and loop back accordingly. Note: Your solution should validate the input to the program from erroneous input. This means that your program checks to see that the data entered is numeric and in the range of 1 and 9 inclusive and not duplicate data c e entered. Hint: A one dimensional array could be used to keep a tally of which numbers have been assigned to the magic square. Program Style The program must contain the following functions that carry out the operations in the given descriptions. Use the function names given in the table. All data must be passed to required functions by value or reference; no global variables are allowed Function Description is function explains the magic square directions, organizes c main other functions, and reports final result This function gets and validates the 9 digits entered by the user to fi the 3x3 table. Must implement passing of array data. getData This function is passed the array data matrix entered by the user check Matrix determine if it is a magic square sequence and returns a Boolean as result of test

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!