Question: PLEASE DO NOT COPY PASTE FROM CHEGG/OTHERWISE I'LL REPORT YOU QUESTION:9 1. Project Description in this project, you are required to implement a multi- threaded

PLEASE DO NOT COPY PASTE FROM CHEGG/OTHERWISE I'LL REPORT YOU

PLEASE DO NOT COPY PASTE FROM CHEGG/OTHERWISE I'LL REPORT YOU QUESTION:9 1.

QUESTION:9 1. Project Description in this project, you are required to implement a multi- threaded Java server that serves multiple users simultaneously to perform different operations on matrices entered by users. The operations are as follows: Mandatory operations: Matrix multiplication - Perform the Convolution operation on a matrix. Sum numbers below the diagonal line and above the diagonal line, then compare the results. Select 2 operations of the following . Find the maximum and minimum elements in a matrix.. Sort the elements of a matrix. Get the average of two matrices and find the maximum average . Find a number in the matrix and replace it with or 1 Note: It is required to implement the 3 mandatory operations listed above. From the selection-based operations, you are required to select and implement any 2 of the operations. 2. Operations Matrix Multiplication For this operation, you need to perform multiplication between matrices entered by the user. You have to ask the user to specify the size of the matrices then ask to enter each element of matrix A followed by each element of the matrix B. Both matrices must have the exact dimensions. Otherwise, you have to show a meaningful error message to the user. The multiplication should be done using the iterative algorithm discussed in Wikipedia 2.1. Find the Maximum and Minimum Elements in a Matrix For this operation, you ask the user to enter only one matrix. First, you request the size of the matrix, then you ask the user to enter the matrix elements. Finally, you need to search for the largest and smallest element in the matrix on the server-side. You have to display the results (both the largest and smallest numbers) to the user. 2.2. Sort Elements of Matrix Similar to the previous operation, first, you request the user to enter the size of the matrix. Second, you have to ask if the sort is ascending or descending. Then, you request the user to enter the matrix elements. Once the server receives the matrix it has to sort it according to the order that the user entered and display the sorted matrix to the user. 2.3. Compute the Average of two Matrices and Find the Maximum Average Between Them in this operation, you must ask the user to enter two matrices of the same size and then compute and compare the average of the two matrices and display it to the user. To calculate the average, you need to perform the following Sum the elements of each matrix, and divide the sum over the total number of elements in the matrix. 2.4. Perform the Convolution operation on a matrix Convolution is adding each element of the image to its local neighbors, weighted by the kernel. The kernel is a small matrix used for blurring, sharpening, embossing, edge detection. You are required to ask the user to enter two matrices: 1. The kernel matrix size should be either [2 x 2] or [3 x 3] 2. The matrix size entered by the user should be of either (8 x 8] or [16 x 16] Once the server receives the matrices, perform the convolution operation and display the resulting matrix to the user. For more information about the convolution, check the following link Wikipedia. 2.5. Sum Numbers Below the Diagonal Line and Above the Diagonal Line, then compare the results in this task, you are required to ask the user to enter a matrix of size [n x n] and compute the numbers above and below the diagonal. For example, consider the following matrix [2 1 87 X=331195 The diagonal numbers are the ones colored in red. Calculating the sum of the numbers above the diagonal line yields: (1 + 8 + 1) = 10, while calculating the sum of the numbers below it yields: (3 +1 +9) = 13. Compare the results and indicate if the sum above the diagonal line is larger than the sum below it, or vice-versa. 2.6. Find a Number(s) in the Matrix and Replace it with a Number that the user Enters This operation requires asking the user to enter a matrix of any dimension, and two numbers: 1. the number that the user wants to replace, and 2. the number to be replaced with. The result should be computed on the server-side and then displayed back to the client. 3. Testing Implement a client application to test all the operations/functionalities you implemented, and verify your results. 2.4. Perform the Convolution operation on a matrix Convolution is adding each element of the image to its local neighbors, weighted by the kernel. The kernel is a small matrix used for blurring, sharpening, embossing, edge detection. You are required to ask the user to enter two matrices: 1. The kernel matrix size should be either [2 x 2] or [3 x 3] 2. The matrix size entered by the user should be of either (8 x 8] or [16 x 16) Once the server receives the matrices, perform the convolution operation and display the resulting matrix to the user. For more information about the convolution, check the following link Wikipedia. 2.5. Sum Numbers Below the Diagonal Line and Above the Diagonal Line, then compare the results In this task, you are required to ask the user to enter a matrix of size (nx n) and compute the numbers above and below the diagonal. For example, consider the following matrix [2 1 87 x = 3 3 1 1 95 The diagonal numbers are the ones colored in red. Calculating the sum of the numbers above the diagonal line yields: (1 + 8 + 1) = 10, while calculating the sum of the numbers below it yields (3 +1 +9) = 13. Compare the results and indicate if the sum above the diagonal line is larger than the sum below it, or vice versa. QUESTION:9 1. Project Description in this project, you are required to implement a multi- threaded Java server that serves multiple users simultaneously to perform different operations on matrices entered by users. The operations are as follows: Mandatory operations: Matrix multiplication - Perform the Convolution operation on a matrix. Sum numbers below the diagonal line and above the diagonal line, then compare the results. Select 2 operations of the following . Find the maximum and minimum elements in a matrix.. Sort the elements of a matrix. Get the average of two matrices and find the maximum average . Find a number in the matrix and replace it with or 1 Note: It is required to implement the 3 mandatory operations listed above. From the selection-based operations, you are required to select and implement any 2 of the operations. 2. Operations Matrix Multiplication For this operation, you need to perform multiplication between matrices entered by the user. You have to ask the user to specify the size of the matrices then ask to enter each element of matrix A followed by each element of the matrix B. Both matrices must have the exact dimensions. Otherwise, you have to show a meaningful error message to the user. The multiplication should be done using the iterative algorithm discussed in Wikipedia 2.1. Find the Maximum and Minimum Elements in a Matrix For this operation, you ask the user to enter only one matrix. First, you request the size of the matrix, then you ask the user to enter the matrix elements. Finally, you need to search for the largest and smallest element in the matrix on the server-side. You have to display the results (both the largest and smallest numbers) to the user. 2.2. Sort Elements of Matrix Similar to the previous operation, first, you request the user to enter the size of the matrix. Second, you have to ask if the sort is ascending or descending. Then, you request the user to enter the matrix elements. Once the server receives the matrix it has to sort it according to the order that the user entered and display the sorted matrix to the user. 2.3. Compute the Average of two Matrices and Find the Maximum Average Between Them in this operation, you must ask the user to enter two matrices of the same size and then compute and compare the average of the two matrices and display it to the user. To calculate the average, you need to perform the following Sum the elements of each matrix, and divide the sum over the total number of elements in the matrix. 2.4. Perform the Convolution operation on a matrix Convolution is adding each element of the image to its local neighbors, weighted by the kernel. The kernel is a small matrix used for blurring, sharpening, embossing, edge detection. You are required to ask the user to enter two matrices: 1. The kernel matrix size should be either [2 x 2] or [3 x 3] 2. The matrix size entered by the user should be of either (8 x 8] or [16 x 16] Once the server receives the matrices, perform the convolution operation and display the resulting matrix to the user. For more information about the convolution, check the following link Wikipedia. 2.5. Sum Numbers Below the Diagonal Line and Above the Diagonal Line, then compare the results in this task, you are required to ask the user to enter a matrix of size [n x n] and compute the numbers above and below the diagonal. For example, consider the following matrix [2 1 87 X=331195 The diagonal numbers are the ones colored in red. Calculating the sum of the numbers above the diagonal line yields: (1 + 8 + 1) = 10, while calculating the sum of the numbers below it yields: (3 +1 +9) = 13. Compare the results and indicate if the sum above the diagonal line is larger than the sum below it, or vice-versa. 2.6. Find a Number(s) in the Matrix and Replace it with a Number that the user Enters This operation requires asking the user to enter a matrix of any dimension, and two numbers: 1. the number that the user wants to replace, and 2. the number to be replaced with. The result should be computed on the server-side and then displayed back to the client. 3. Testing Implement a client application to test all the operations/functionalities you implemented, and verify your results. 2.4. Perform the Convolution operation on a matrix Convolution is adding each element of the image to its local neighbors, weighted by the kernel. The kernel is a small matrix used for blurring, sharpening, embossing, edge detection. You are required to ask the user to enter two matrices: 1. The kernel matrix size should be either [2 x 2] or [3 x 3] 2. The matrix size entered by the user should be of either (8 x 8] or [16 x 16) Once the server receives the matrices, perform the convolution operation and display the resulting matrix to the user. For more information about the convolution, check the following link Wikipedia. 2.5. Sum Numbers Below the Diagonal Line and Above the Diagonal Line, then compare the results In this task, you are required to ask the user to enter a matrix of size (nx n) and compute the numbers above and below the diagonal. For example, consider the following matrix [2 1 87 x = 3 3 1 1 95 The diagonal numbers are the ones colored in red. Calculating the sum of the numbers above the diagonal line yields: (1 + 8 + 1) = 10, while calculating the sum of the numbers below it yields (3 +1 +9) = 13. Compare the results and indicate if the sum above the diagonal line is larger than the sum below it, or vice versa

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!