Question: Java Your program should ask the user to enter a number of sides (N) for the magic square. Your program should handle: 1, 3, 4,
Java

Your program should ask the user to enter a number of sides (N) for the magic square. Your program should handle: 1, 3, 4, 5, 7, 8, 9, 11, 12, 13, 15, 16, 17 For 2, you should print "Not possible" For 6, 10, 14, you should print "Don't press your luck" For all other values, you should produce a valid Magic Square. Your program should also ask the user for a preferred printing format, with or without box outlines. For a 3 times 3, without outlines looks like: 8 1 6 3 5 7 4 9 2 with outlines looks like: 8 1 6 3 5 7 4 9 2 Finally, for any allowed N > 2 your program should ask for an "example id" a-d. Every time a user enters 'a' for a particular N, they should see the same square: likewise for b-c. However, the square they see when they enter 'a' should not be identical to the one they see for 'b', 'c' or 'd': likewise for 'b' and 'c', 'c' and 'd', and 'b' and 'd'. (in other words, they're all different) After requesting these 3 options, your program should print an appropriate magic square. Unit Tests You must submit JUnit tests that verify all of the major components of your solution. You should have no fewer than 3 and probably no more than 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
