Create a command-line tool /usr/local/bin/decimal-matrix that performs fixed-point decimal arithmetic on…
Create a command-line tool /usr/local/bin/decimal-matrix that performs fixed-point decimal arithmetic on…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Goal : Read two matrices from stdin (format specified below), multiply them, and output the result matrix to…
The task
**Goal**: Read two matrices from stdin (format specified below), multiply them, and output the result matrix to stdout. All arithmetic must use fixed-point decimal with exactly 4 decimal places of precision, using banker's rounding (round half to even). The matrices contain decimal numbers.
Part of ai-and/termgrade-environments.