Write a program that will perform the following matrix operations: 1. Matrix addition 2. Matrix subtraction 3. Scalar multiplication / Dot product 4. Matrix multiplication / Cross product Display a menu to the user to choose from the above operations. Depending on the chosen operation, ask the user to input the dimensions of the two matrices to process. Have a loop to repeat the whole process as the user requires.   PLEASE add "//" every code wirtten to explain its use in the program. thank you! do the following conditions set and DO IT IN C++

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 8PE
icon
Related questions
Question

Write a program that will perform the following matrix operations:
1. Matrix addition
2. Matrix subtraction
3. Scalar multiplication / Dot product
4. Matrix multiplication / Cross product
Display a menu to the user to choose from the above operations. Depending on the
chosen operation, ask the user to input the dimensions of the two matrices to process.
Have a loop to repeat the whole process as the user requires.

 

PLEASE add "//" every code wirtten to explain its use in the program. thank you! do the following conditions set and DO IT IN C++

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Basics of loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage