Question: IN JAVA Administrative: 1. Put your information (name, class, etc) in a header comment block. 2. Please comment appropriately. This is particularly important if you

IN JAVA

Administrative: 1. Put your information (name, class, etc) in a header comment block. 2. Please comment appropriately. This is particularly important if you code doesnt work properly. Description of the Assignment: For this assignment, download the appropriate files (Amatrix and Bmatrix). These files are text files where the first two values specify the number of rows and the number of columns in the input matrix. After this data, the remaining contents is the data in row-major order. For example, the if the first two integer values are 3 3 then the first 3 values are the first row in the matrix. As an example, a 3x3 matrix: [ 1 2 3 4 5 6 7 8 9 ] would have data contents 3 3 1 2 3 4 5 6 7 8 9 (without the quotation marks of course). The elements of the matrix are integers. After you read the matrix A and matrix B data (using whatever data structure you deem appropriate), output the following data: 1. Write matrix A to a file named CS2300P1a.outA. This should be a plain text file. You should also write this result to stdout (the screen).

2. Write matrix B to a file named CS2300P1a.outB and to stdout.

3. Calculate 6B 5A using the A and B matrices above. Write this result to CS2300P1a.calc and to stdout.

4. Write the transpose of the result of matrix B (just above) to a file CS2300P1a.trans and to stdout. Note that the transpose is equal to the matrix itself. This is known as a symmetric matrix. This property has many beneficial properties.

Use the same format for your files as that used in the input file (ie, the first two entries should be the number of rows and columns in the resulting matrix) followed by the contents in rowmajor order. Deliverables: 1. Upload your source files to Canvas. Everything needed to reproduce your results should be included. 2. Provide a PDF version of your source file(s). DO NOT PUT THE PDF IN A ZIP FILE!

3. Create a video of your program running correctly. You can use a screen capture program or just record with (for example) a smart phone. This video should be uploaded to Canvas. 4. On the Canvas submission, note anything that didnt work properly. Rubric 1. Correct output of the A matrix: 20 pts 2. Correct output of the B matrix: 20 pts 3. Correctly calculating and outputting 5A B to a file: 30 points 4. Correctly calculating the transpose: 30 points 5. No video: -30 points 6. No PDF of source files: -25 points AMATRIX

15 17 -20 -2 -3 -2 11 -7 12 -1 -19 -13 9 -1 -14 -7 4 -13 10 -11 17 -9 11 -13 -9 -17 3 8 2 -3 6 6 7 6 18 -12 9 -11 -16 4 -2 -2 7 11 -6 7 -3 14 14 -10 5 3 2 15 -10 -7 -16 18 6 -1 6 2 6 2 9 1 20 -12 -16 -16 -18 -4 -2 -6 11 5 11 18 19 -13 -15 8 -17 1 1 15 -1 -4 7 10 1 -6 -14 4 -10 -19 10 -11 -2 8 -6 10 -4 8 8 -2 -20 -7 -3 -9 -12 13 -3 16 -4 11 -4 13 10 -5 -12 12 18 -7 7 -3 14 11 -14 15 20 1 16 4 -14 -12 -4 10 13 12 -7 1 -17 -16 -15 7 0 -13 0 -14 -18 14 2 18 8 3 13 16 20 -20 15 5 20 1 -1 12 -11 0 16 3 14 10 4 -10 7 -17 5 7 9 16 20 11 3 18 3 -20 -16 15 -1 14 -12 2 5 -19 5 -6 -18 0 -13 -15 -12 -14 -13 -19 6 -9 2 8 0 1 -2 -15 0 14 15 -9 -12 3 6 -3 -12 18 -17 -16 -15 -14

BMATRIX

15 3 2 -9 9 5 5 -9 8 9 10 8 6 0 -7 -2 -8 -10 9 -4 -4 -4 -1 3 -10 7 1 7 -3 -1 -9 -7 3 -4 8 -8 10 1 4 10 -4 -2 -1 6 7 -8 -7 -3 -9 0 -3 -7 -6 9 4 -1 9 -8 5 5 1 -7 2 -4 -8 -6 8 -9 -5 -9 -1 -10 8 -6 -9 -4 -1 -8 10 -4 -4 -9 -4 -10 0 5 3 -9 -9 6 9 1 -8 7 -3 -4 5 -10 -9 4 2 1 5 4 6 -4 4 1 -2 -9 6 -3 2 5 -8 -8 1 0 8 6 5 -9 -9 -9 6 9 4 -8 5 -8 -8 3 -4 3 5 2 5 -6 5 10 8 -9 -3 -3 4 2 6 -3 -6 -9 6 -6 -2 1 -6 3 0 -7 6 -8 -4 -6 1 -9 -2 -8 -8 6 -4 2 10 -1 4 5 -1 3 -8 9 -7 -5 6 0 6 -2 -5 -10 4 -1 -1 2 -9 -4 6 4 -8 -8 -9 -10 -2 3 5 1 -8 3 -8 -8 -8 -8 -7 -6 -4 -4 -6 -5 8 4 1 -7 -6 -9 9 4 1 -4 -7 3

IN JAVA IN JAVA Administrative: 1. Put your information (name, class, etc) in a
header comment block. 2. Please comment appropriately. This is particularly important if
AMatrix
you code doesnt work properly. Description of the Assignment: For this assignment,
BMatrix
download the appropriate files (Amatrix and Bmatrix). These files are text files

CS 2300 Program 1 Due 14 Feb 2020 Administrative: 1. Put your information (name, class, etc) in a header comment block. 2. Please comment appropriately. This is particularly important if you code doesn't work properly. Description of the Assignment: For this assignment, download the appropriate files ("Amatrix" and "Bmatrix"). These files are text files where the first two values specify the number of rows and the number of columns in the input matrix. After this data, the remaining contents is the data in row-major order. For example, the if the first two integer values are "33" then the first 3 values are the first row in the matrix. As an example, a 3x3 matrix: [1 4 17 2 5 8 3] 6 9) would have data contents "3312 3 4 5 6 7 8 9" (without the quotation marks of course). The elements of the matrix are integers. After you read the matrix A and matrix B data (using whatever data structure you deem appropriate), output the following data: 1. Write matrix A to a file named "CS2300P1acyour last name>.outA". This should be a plain text file. You should also write this result to stdout the screen). 2. Write matrix B to a file named "CS2300P1acyour last name> outB" and to stdout. 3. Calculate 68-5A using the A and B matrices above. Write this result to "CS2300Placyour last name>.calc" and to stdout. 4. Write the transpose of the result of matrix B (just above) to a file "CS2300Pla.trans" and to stdout. Note that the transpose is equal to the matrix itself. This is known as a symmetric matrix. This property has many beneficial properties. Use the same format for your files as that used in the input file (ie, the first two entries should be the number of rows and columns in the resulting matrix) followed by the contents in row. major order. Deliverables: 1. Upload your source files to Canvas. Everything needed to reproduce your results should be included. 2. Provide a PDF version of your source file(s). DO NOT PUT THE PDF IN A ZIP FILE! 3. Create a video of your program running correctly. You can use a screen capture program or just record with (for example) a smart phone. This video should be uploaded to Canvas. 4. On the Canvas submission, note anything that didn't work properly. Rubric 1. Correct output of the A matrix: 20 pts 2. Correct output of the B matrix: 20 pts 3. Correctly calculating and outputting 5A - B to a file: 30 points 4. Correctly calculating the transpose: 30 points 5. No video: -30 points 6. No PDF of source files: -25 points | 15 17 -20 -2 -3 -2 11 -7 12 -1 -19 -139 -1 -14 -7 4 -13 10 -11 17 -9 11 -13 -9 -17 382 -3 6 676 18 -129 -11 -16 4 -2 -27 11 -6 7 -3 14 14 -10 53 2 15 -10 -7-16 186 -1 62629120 -12 -16 -16 -18 -4 -2 -6 115 11 18 19 -13 -15 8 -17 11 15 -1 -47 10 1-6 -14 4 -10 -19 10 -11-28 -6 10 -488 -2 -20 -7-3-9-12 13 -3 16 -4 11 -4 13 10 -5 -12 12 18 -77-3 14 11 -14 15 20 1 16 4 -14 -12 -4 10 13 12 -71-17 -16 -1570 -13 0 -14 -18 14 2188 3 13 16 20 -20 15520 1 -1 12 -11 0 16 3 14 10 4 -10 7-17579 16 20 113 18 3 -20 -16 15 -1 14 -12 25 -19 5-6 -18 0 -13 -15 -12-14 -13 -19 6-9 28 01-2 -150 14 15 -9 -12 36 -3 -12 18 -17 -16 -15 -14 | 15 32 -9955-989 10 86 0 -7-2 -8 -10 9 -4 | -4 -4 - 13 -10 717-3 -1 -9 -73 -4 8 -8 10 14 | 10 -4 -2 -167-8 -7-3-9 0 -3 -7-694 -19-8 551-72-4 -8 -6 8-9 -5 -9 -1 -10 8 -6 -9 -4 -1 -8 10 -4 -4 -9 -4 -10 0 53 -9 -9691-87-3 -4 5-10 -9421546 -4 41 -2 -96 -3 25 -8 -8 1 0865-9-9-9694 -85-8 -8 3-4 3525 -6 5 10 8 -9 -3 -3426 -3 -6 -96 -6 -2 1 -6 30 -76 -8 -4 -6 1-9 -2 -8 -8 6 -4 2 10 -1 4 5 -13 -89 -7-5606 -2 -5 -10 4 -1 -12-9 -4 64 -8 -8 -9 -10 -2 351-8 3 -8 -8 -8 -8 -7 -6 -4 -4 -6 -584 1 -7 -6 -9941-4 -73 CS 2300 Program 1 Due 14 Feb 2020 Administrative: 1. Put your information (name, class, etc) in a header comment block. 2. Please comment appropriately. This is particularly important if you code doesn't work properly. Description of the Assignment: For this assignment, download the appropriate files ("Amatrix" and "Bmatrix"). These files are text files where the first two values specify the number of rows and the number of columns in the input matrix. After this data, the remaining contents is the data in row-major order. For example, the if the first two integer values are "33" then the first 3 values are the first row in the matrix. As an example, a 3x3 matrix: [1 4 17 2 5 8 3] 6 9) would have data contents "3312 3 4 5 6 7 8 9" (without the quotation marks of course). The elements of the matrix are integers. After you read the matrix A and matrix B data (using whatever data structure you deem appropriate), output the following data: 1. Write matrix A to a file named "CS2300P1acyour last name>.outA". This should be a plain text file. You should also write this result to stdout the screen). 2. Write matrix B to a file named "CS2300P1acyour last name> outB" and to stdout. 3. Calculate 68-5A using the A and B matrices above. Write this result to "CS2300Placyour last name>.calc" and to stdout. 4. Write the transpose of the result of matrix B (just above) to a file "CS2300Pla.trans" and to stdout. Note that the transpose is equal to the matrix itself. This is known as a symmetric matrix. This property has many beneficial properties. Use the same format for your files as that used in the input file (ie, the first two entries should be the number of rows and columns in the resulting matrix) followed by the contents in row. major order. Deliverables: 1. Upload your source files to Canvas. Everything needed to reproduce your results should be included. 2. Provide a PDF version of your source file(s). DO NOT PUT THE PDF IN A ZIP FILE! 3. Create a video of your program running correctly. You can use a screen capture program or just record with (for example) a smart phone. This video should be uploaded to Canvas. 4. On the Canvas submission, note anything that didn't work properly. Rubric 1. Correct output of the A matrix: 20 pts 2. Correct output of the B matrix: 20 pts 3. Correctly calculating and outputting 5A - B to a file: 30 points 4. Correctly calculating the transpose: 30 points 5. No video: -30 points 6. No PDF of source files: -25 points | 15 17 -20 -2 -3 -2 11 -7 12 -1 -19 -139 -1 -14 -7 4 -13 10 -11 17 -9 11 -13 -9 -17 382 -3 6 676 18 -129 -11 -16 4 -2 -27 11 -6 7 -3 14 14 -10 53 2 15 -10 -7-16 186 -1 62629120 -12 -16 -16 -18 -4 -2 -6 115 11 18 19 -13 -15 8 -17 11 15 -1 -47 10 1-6 -14 4 -10 -19 10 -11-28 -6 10 -488 -2 -20 -7-3-9-12 13 -3 16 -4 11 -4 13 10 -5 -12 12 18 -77-3 14 11 -14 15 20 1 16 4 -14 -12 -4 10 13 12 -71-17 -16 -1570 -13 0 -14 -18 14 2188 3 13 16 20 -20 15520 1 -1 12 -11 0 16 3 14 10 4 -10 7-17579 16 20 113 18 3 -20 -16 15 -1 14 -12 25 -19 5-6 -18 0 -13 -15 -12-14 -13 -19 6-9 28 01-2 -150 14 15 -9 -12 36 -3 -12 18 -17 -16 -15 -14 | 15 32 -9955-989 10 86 0 -7-2 -8 -10 9 -4 | -4 -4 - 13 -10 717-3 -1 -9 -73 -4 8 -8 10 14 | 10 -4 -2 -167-8 -7-3-9 0 -3 -7-694 -19-8 551-72-4 -8 -6 8-9 -5 -9 -1 -10 8 -6 -9 -4 -1 -8 10 -4 -4 -9 -4 -10 0 53 -9 -9691-87-3 -4 5-10 -9421546 -4 41 -2 -96 -3 25 -8 -8 1 0865-9-9-9694 -85-8 -8 3-4 3525 -6 5 10 8 -9 -3 -3426 -3 -6 -96 -6 -2 1 -6 30 -76 -8 -4 -6 1-9 -2 -8 -8 6 -4 2 10 -1 4 5 -13 -89 -7-5606 -2 -5 -10 4 -1 -12-9 -4 64 -8 -8 -9 -10 -2 351-8 3 -8 -8 -8 -8 -7 -6 -4 -4 -6 -584 1 -7 -6 -9941-4 -73

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To complete this Java assignment follow these steps Step 1 Reading Matrix Data 1 Read from Files Read the matrices Amatrix and Bmatrix from their resp... View full answer

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!