Question: java program write a java program CAMPUS DE Column Column Column Column 1 2 3 4 Row 1 *[@][0] x[@](1) x[@][2] x[@][3] Row 2 *[1][@]

java program
write a java program
CAMPUS DE Column Column Column Column 1 2 3 4 Row 1 *[@][0] x[@](1) x[@][2] x[@][3] Row 2 *[1][@] [1][1] x[1][2] x[1][3) Activity 10 Row 3 x[2][@] x[2][1] x[2][2] x[2][3] THE MATRIX DISPLAY (2 DIMENSIONAL ARRAY) CONCEPT Two-dimensional Arrays. A 2D array has a type such as int[][] or String[][], with two pairs of square brackets. The elements of a 2D array are arranged in rows and columns, and the new operator for 2D arrays specifies both the number of rows and the number of columns. For example, int[][] A; A = new int[3][4]; Create the following java program: This program will display a mark table to the user, depending on its input. The columns represents the subjects. The rows represents the students. Algorithm to input data from the user: o Ask the user how many subjects (columns) he wants. o Ask the user how many students (rows) he wants. o For each student, loop and ask a mark for each subject The final output needs to respects the following: How the program will display the final output: Marks for the 3 students |-- -1- -|-----| | 75 80 | 751 |--- -|-- -- 1 - -- | 80 851 80 | -- 1 - --- | 85 901 85 |-----|-----|-----| III 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
