Create a command-line tool fixcalc that performs fixed-point arithmetic operations on decimal numbers.
Create a command-line tool fixcalc that performs fixed-point arithmetic operations on decimal numbers.: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Goal: Read a single arithmetic expression from stdin, compute the…
The task
**Goal:** Read a single arithmetic expression from stdin, compute the result using fixed-point decimal arithmetic, and print the result to stdout.