Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

Q3 input

image text in transcribed

image text in transcribed

At this point the pattern should continue to enter all 9 numbers....

Output if numbers dont make magic shape

image text in transcribedCorrected INPUT :

image text in transcribed

image text in transcribed

at this point pattern should continue to enter all 9 numbers

OUTPUT:

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is computer neworking ?

Answered: 1 week ago

Question

=+2 Is the decision sustainable in the long run?

Answered: 1 week ago

Question

=+1 Is the decision fair to employees?

Answered: 1 week ago