cut - System.out.println("Matrix a IS a magic...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 System.out.println("Matrix a IS a magic square.") System.out.println("Matrix a, is not, a majic square.") System.out.println("Matrix b IS a magic square.") System.out.println("Matrix a, is not, a majic square.") magic square //Johnny import javax.swing.* import java.lang.* import java.util.Scanner import java.io.* import java.text.* import java.math.* import java.text.DecimalFormat import java.lang.String import java.text.NumberFormat public class magicsquare1{ static int[][] a = new int[4][4] static int[][] b = new int[5][5] static int[] seq = new int[16] static int[][] p = new int[4][4] s public static void main (String []args) throws FileNotFoundException, IOException { int menu Scanner johnny = new Scanner(System.in) //menu do { System.out.println("") System.out.println("**************************************************") System.out.println("********************* MENU ***********************") System.out.println("**************************************************") System.out.println("1.) Read From Data File") System.out.println("2.) Read From Keyboard") System.out.println("3.) Display Arrays") System.out.println("4.) Magic Square(Display sums of each row," + "column, and diaganol.)") System.out.println("5.) Arithmetic Sequence")
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Sheet1 Page 2 System.out.println("6.) Matricize.") System.out.println("7.) Reverse Diaganol.") System.out.println("8.) Magic Square 2.") System.out.println("9.) EXIT.") System.out.println("***************************************************") System.out.println() System.out.println()
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 12

cut - System.out.println("Matrix a IS a magic...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online