Question: Java program. please help me to solve this problem.Thanks. * There is a board (matrix). Every cell of the board contains one integer, which is

Java program. please help me to solve this problem.Thanks.
Java program. please help me to solve this problem.Thanks. * There is

* There is a board (matrix). Every cell of the board contains one integer, which is 0 initially. * The next operations can be applied to the Query Board: * SetRow ix : it means that all values in the cells on row " i " have been changed to value " x " after * this operation. * SetCol jx : it means that all values in the cells on column " j " have been changed to value " x " after * this operation. QueryRow i: it means that you should output the sum of values on row " in". * QueryCol j : it means that you should output the sum of values on column "j". * The board's dimensions are 256256 * " i " and " j " are integers from 0 to 255 xn is an integer from 0 to 31 * INPUT SAMPLE: * Your program should accept as its first argument a path to a filename. Each line in this file contains * an operation of a query. E.g. * SetCol 3220 * SetRow 157 * SetRow 1631 * QueryCol 32 * SetCol 214 * QueryRow 10 * SetCol 140 * QueryRow 15 * SetRow 101 * QueryCol 2 * OUTPUT SAMPLE: * For each query, output the answer of the query. E.g. * 5118 * 34 * 1792 * 3571

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