Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN JAVA, i do not need the video, just the code AMatrix BMatrix CS 2300 Program 1 Due 14 Feb 2020 Administrative: 1. Put your

IN JAVA, i do not need the video, just the code
image text in transcribed
image text in transcribed
AMatrix
image text in transcribed
BMatrix
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions

Question

Evaluate three pros and three cons of e-prescribing

Answered: 1 week ago

Question

Lo6 Identify several management development methods.

Answered: 1 week ago

Question

LO4 List options for development needs analyses.

Answered: 1 week ago