Create a command-line tool /app/fixcalc that performs arithmetic operations on fixed-point decimal numbers…
Create a command-line tool /app/fixcalc that performs arithmetic operations on fixed-point decimal numbers…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input format (stdin): A text file where each non-empty line…
The task
**Input format (stdin):** A text file where each non-empty line is one of: - A directive: `PRECISION <n>` where n is an integer between 0 and 10 inclusive (sets decimal places for all subsequent operations until changed). - An operation line: `<op> <arg1> <arg2>` where: - `<op>` is one of: `ADD`, `SUB`, `MUL`, `DIV`…