JAVA LANGUAGE (Answered previously in wrong language) The menu part is important and should be a scanner, that gives you an option and I attached an image (something like that) to what the output should resemble. I asked this question here last time but I just didn't get a menu This program is to be run from a menu o Read Array from Keyboard (1. Create array) o Display Arrays (2. Display given arrays) o Magic Square? (3. Display magic square array)   • An n-by-n array is called a magic square if the sums of each row, each column, and each diagonal are equal. Write a program to determine if an array is a magic square and use it to determine if either of the arrays below is a magic square. Hint: if at any time one of the sums is not equal to the others, the search is complete. o A 1 15 15 4 12 6 7 9 8 10 11 5 13 3 2 16 o B 11 10 4 23 17 18 12 6 5 24 25 19 13 7 1 2 21 20 14 8 9 3 22 16 15

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter8: Arrays
Section: Chapter Questions
Problem 1MQ5
icon
Related questions
Question

JAVA LANGUAGE (Answered previously in wrong language)

The menu part is important and should be a scanner, that gives you an option and I attached an image (something like that) to what the output should resemble. I asked this question here last time but I just didn't get a menu

This program is to be run from a menu
o Read Array from Keyboard (1. Create array)
o Display Arrays (2. Display given arrays)
o Magic Square? (3. Display magic square array)

 

• An n-by-n array is called a magic square if the sums
of each row, each column, and each diagonal are
equal. Write a program to determine if an array is a
magic square and use it to determine if either of the
arrays below is a magic square. Hint: if at any time
one of the sums is not equal to the others, the
search is complete.
o A
1 15 15 4
12 6 7 9
8 10 11 5
13 3 2 16
o B
11 10 4 23 17
18 12 6 5 24
25 19 13 7 1
2 21 20 14 8
9 3 22 16 15

Please Pick An Option
1 for Create - an-array
2 for Display Arrays A and B
3 for Magic Squares
4 to Exit
1
Create-an-array
1 for 3x3
2 for 4x4
3 for 5x5
4 to Return to main menu
Transcribed Image Text:Please Pick An Option 1 for Create - an-array 2 for Display Arrays A and B 3 for Magic Squares 4 to Exit 1 Create-an-array 1 for 3x3 2 for 4x4 3 for 5x5 4 to Return to main menu
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Files and Directory
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage