here is my code public class J1_08 { static void toPrintoutMatrix(String[] args) {
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Matrix multiplication: A X B= C where A, B are 5 x 3, 3 x 4 matrix respectively 1. Create two random 1digit-integer matrices (2-dimensional arrays) A and B 2. Perform matrix multiplication and print out the result matrix *Tip: Programming Exercise 8.6 (Algebra: multiply two matrices) in the Liang textbook and the links: https://www.mathsisfun.com/algebra/matrix-multiplying.html Khan Academy: https://bit.ly/2Ydetec 3. Verify your algorithm by checking the followings: A. the number of columns of the matrix A is equal to the number of rows in matrix B. B. the size of the result matrix (C) is 5 X 4. C. c11 = a11 x b11+ a12 x b21+ a13 x b31 (a,b,c are elements of A,B and C respectively) c54a51 x b14 + a52 x b24 + a53 x b34 D. check your result with https://onlinemschool.com/math/assistance/matrix/multiply/ and submit the screenshot like this: The first matrix: 4 5 6 A = 7 8 9 0 1 2 4 5 The second matrix: 1 2 3 B = 5 6 7 8 9 0 1 2 A-B You can input only integer numbers, decimals or fractions in this online calculator (-2.4, 57,...). More in-depth information read at these rules. CONTINUE > Solution: 123 456 38 14 20 26 C=AB= 789 012 1 2 3 4 5678 9012 83 38 53 68 128 62 86 110 345 23 69 68 30 42 12 54 The components of the matrix C is calculated as: C11 11 11 +12 b21+013 b311-1+2-5+3-9=1+10+27=38 C12 11 12 12 b22+ a13 b32 1-2+2 6+3-0-2+12+0-14 + C13 11 13 012 b23+a13-b33-1-3+2-7+3-1-3+14+3=20 - Click Continue Answer 20 Questions Get your IQ Matrix multiplication: A X B= C where A, B are 5 x 3, 3 x 4 matrix respectively 1. Create two random 1digit-integer matrices (2-dimensional arrays) A and B 2. Perform matrix multiplication and print out the result matrix *Tip: Programming Exercise 8.6 (Algebra: multiply two matrices) in the Liang textbook and the links: https://www.mathsisfun.com/algebra/matrix-multiplying.html Khan Academy: https://bit.ly/2Ydetec 3. Verify your algorithm by checking the followings: A. the number of columns of the matrix A is equal to the number of rows in matrix B. B. the size of the result matrix (C) is 5 X 4. C. c11 = a11 x b11+ a12 x b21+ a13 x b31 (a,b,c are elements of A,B and C respectively) c54a51 x b14 + a52 x b24 + a53 x b34 D. check your result with https://onlinemschool.com/math/assistance/matrix/multiply/ and submit the screenshot like this: The first matrix: 4 5 6 A = 7 8 9 0 1 2 4 5 The second matrix: 1 2 3 B = 5 6 7 8 9 0 1 2 A-B You can input only integer numbers, decimals or fractions in this online calculator (-2.4, 57,...). More in-depth information read at these rules. CONTINUE > Solution: 123 456 38 14 20 26 C=AB= 789 012 1 2 3 4 5678 9012 83 38 53 68 128 62 86 110 345 23 69 68 30 42 12 54 The components of the matrix C is calculated as: C11 11 11 +12 b21+013 b311-1+2-5+3-9=1+10+27=38 C12 11 12 12 b22+ a13 b32 1-2+2 6+3-0-2+12+0-14 + C13 11 13 012 b23+a13-b33-1-3+2-7+3-1-3+14+3=20 - Click Continue Answer 20 Questions Get your IQ
Expert Answer:
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date:
Students also viewed these programming questions
-
This question concerns lexical grammars. (a) Tree Adjoining Grammars contain two types of elementary tree. (i) What are these trees called? [1 mark] (ii) If one were building a grammar for English...
-
fix this code so i dont get errors: package final_project; import java.util.ArrayList; import java.util.Scanner; import java.util.regex.Pattern; /** * * @author hudael-haj_snhu */ class Ingredient {...
-
(a) Explain how a limit worth may be tended to at run-time, both in a syntaxtree middle person and in collected code. What is the importance word "settled" already? [3 marks] (b) Give a model program...
-
Reid Corporation's balance sheet at January 1, 20X9 reflected the following balances: Cash & Receivables $ 30,000 Inventory $ 75,000 Land $125,00 Building & Equipment (net) $850,000 Common Stock...
-
(a) Write a single Lewis structure for SO3, and determine the hybridization at the S atom. (b) Are there other equivalent Lewis structures for the molecule? (c) Would you expect SO3 to exhibit...
-
Real versus Financial Assets. Which of the following are real assets, and which are financial? a. A share of stock b. A personal IOU c. A trademark d. A truck e. Undeveloped land f. The balance in...
-
If the Grand Canyon Railway cuts its ticket price to \(\$ 50\) per passenger, what is the new breakeven point? a. 100 more passengers than with the original \(\$ 60\) ticket price b. 250 more...
-
Every time a machine breaks down at the Dynaco Manufacturing Company (Problem 3), either 1, 2, or 3 hours are required to fix it, according to the following probability distribution: Repair Time...
-
Consider the equation /"(t) =e4* + 321/S with /'(0) =3 and / (0) =2. a) We have T sin (a ) ? E bj Using (a), we find that f(0) = sin (a )
-
Calculation of inventories You are part of the team auditing Wellington Ltd. The audit senior asks you to verify the inventories at 30 June 2025. The company uses a perpetual method to account for...
-
Joe understands that Sally is purchasing her fleet vehicles froma competitor. Joe tells Sally that he will provide to her and herfamily a four-day weekend at a mountain resort valued at $2,000 ifsh 2...
-
Give an example of Thaler's mental accounting that you have actually witnessed in another person. Be specific of who, what, where and when - and whether or not in your opinion the outcome was...
-
BERRAPCALCBR7 1.4.065. 12. [0/1 Points] DETAILS For the function, find and simplify f(x) = 6x - 8x +1 PREVIOUS ANSWERS f(x+h) f(x) (Assume h + 0.) h +4xh+2h - 8x 8h+1 f(x + h) - f(x) = h 6x2 Need...
-
What are the key architectural features and design trade-offs involved in implementing a microkernel-based operating system compared to a monolithic kernel architecture, particularly in terms of...
-
What is data integrity, and what are some common methods to ensure data integrity in databases?
-
There are two renowned costing system i.e., Job Order Costing System or Process Costing System used by manufacturing or service organization. You are required to highlight the suitability, advantages...
-
At the end of 2025, the following information is available for Great Adventures. Additional interest for five months needs to be accrued on the $30,000, 6% note payable obtained on August 1, 2024....
-
Nike manufactures shoes and sportswear. How has the Internet changed the way this company communicates with its suppliers and retail customers?
-
Darden Restaurants Contingent Liabilities The following excerpts are from the footnotes of Darden Restaurants financial statements of May 29, 2005: In March 2003 and March 2002, two purported class...
-
Current Ratio Loan Provision Assume that you are the controller of a small, growing sporting goods company. The prospects for your firm in the future are quite good; but like many other firms, it has...
-
Alternative Payment Options Kathy Clark owns a small company that makes ice machines for restaurants and food-service facilities. Kathy knows a great deal about producing ice machines but is less...
Study smarter with the SolutionInn App