Question: 7 : 1 * Midterm _ Project _ ff 1 3 5 c 9 d 4 . OBJECTIVES This project will make you professional in
:
MidtermProjectffcd
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 : PM on
Students who choose to take the exam facetoface should discuss the project on time.
PROJECT Description
Write a program that performs arithmetic operations on matrices. Given two matrices A and you are given a list of queries to answer. A query will be one of the following:
SUMAB
@
SUBTAB
@
SUBT BA
@
MULAB
@
MULBA
@
Transpose A
Transpose B
Your task is to write a program which answers these queries.
IP a g e
INPUT
Your program will be tested on one or more test cases. The first line of the input will be a single integer the number of test cases After that follow the specifications of test cases. Each test case starts with a line containing integers separated by a single space N M representing the dimensions of the matrix A followed by lines containing integers separated by spaces. The th number in the th line is the number in the cell in the matrix Followed by a line contains integers separated by a single space M representing the dimensions of the matrix B followed by N lines contains M integers separated by spaces. The th number in the th line is the number in the cell in the matrix Followed by a line containing an integer the number of queries, followed by 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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
