Question: 7 : 1 * Midterm _ Project _ ff 1 3 5 c 9 d 4 . OBJECTIVES This project will make you professional in

7:1*
Midterm_Project_ff135c9d4.
OBJECTIVES
This project will make you professional in dealing with Java statements, specifically selection statements, loops, files, arrays, and methods.
GUIDELINES
You must make documentation by using comments to easily understand the code after a break.
DEADLINE
Deadline for this project and report is 11:55 PM on 13-05-2024.
Students who choose to take the exam face-to-face should discuss the project on time.
PROJECT Description
Write a program that performs arithmetic operations on matrices. Given two matrices A and B, you are given a list of queries to answer. A query will be one of the following:
SUMAB
@(A+B)
SUBTAB
@,(A-B)
SUBT BA
@(B-A)
MULAB
@(A**B)
MULBA
@(B**A)
Transpose A
Transpose B
Your task is to write a program which answers these queries.
IP a g e 1
INPUT
Your program will be tested on one or more test cases. The first line of the input will be a single integer T, the number of test cases )T(100. After that follow the specifications of T test cases. Each test case starts with a line containing 2 integers separated by a single space N1 M1(N130 representing the dimensions of the matrix A, followed by N1 lines containing M1 integers separated by spaces. The j-th number in the i-th line is the number in the cell (i,j in the matrix A. Followed by a line contains 2 integers separated by a single space N2 M2(1N230,(1M230 representing the dimensions of the matrix B, followed by N2 lines contains M2 integers separated by spaces. The j-th number in the i-th line is the number in the cell (i,j) in the matrix B. Followed by a line containing an integer Q, the number of queries, followed by Q lines, each line contains a single query of the previously defined. OUTPUT
For each test case print the test case number, then print the result of each query. The output must not contain empty lines between the cases.
NOTE:
it is guaranteed that all queries can be performed on the given matrices, so you do not have to check it
7 : 1 * Midterm _ Project _ ff 1 3 5 c 9 d 4 .

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 Finance Questions!