Overview: In this assignment you will submit two separate programs. Both program
ID: 3559881 • Letter: O
Question
Overview:
In this assignment you will submit two separate programs. Both programs will create a random matrix of 1s and 0s as illustrated in Exercise 14.7(a) in the book. The first program will implement the matrix using Swing. The second program will implement the matrix using JavaFX.
Instructions:
In this assignment, students will develop multiple methods: The main method A method for greeting the user when the program begins A method for creating and displaying the matrix Both programs should output windows that look like the example shown in 14.7(a) (example shown below). There will be subtle differences in the two windows due to the different technologies used. That is not a problem.
Please show your output. No output == No Points
Explanation / Answer
matrix declared in main (e.g: mat[][] = new int[10][10];) * @rows: number of matrix rows (e.g: int rows = 10;) * @columns: number of matrix columns (e.g: int columns =10;) */ public static int[][] inputMatrix(int[][] mat, int rows, int columns) { JPanel panel = new JPanel(); panel.setLayout(new GridLayout(rows,columns)); for (int a=0; aRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.