Question
Write a Javascript program that allows the user to enter Pos magic numbers.Pos magic square is a two-dimensional array of positive integers in which the
Write a Javascript program that allows the user to enter Pos magic numbers.Pos magic square is a two-dimensional array of positive integers in which the following is true:
The number of rows equals the number of columns.
Every row, column, and the two diagonals add up to the same number.
The web page must have a table that has three rows and three columns.
Allow the user to enter values for each cell.
Store the values in a two-dimensional array named RichardMagic and determine if it is Pos magic square. (-10 points if it is not a 2-D array, 8 points for magic square checking)
webpage should follow examples below
Initial page:
Q3 input
At this point the pattern should continue to enter all 9 numbers....
Output if numbers dont make magic shape
Corrected INPUT :
at this point pattern should continue to enter all 9 numbers
OUTPUT:
Richard Ricardo's Kung Fu Panda Po Magic Square Richard will check if the numbers form a magic square. A magic square exists when all the rows, columns, and diagonals of a square add up to the same number. Enter Po's magic numbers Check if it is a magic square Result
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started