Write a command-line tool fixcalc that performs arithmetic on fixed-point decimal numbers. The tool reads a…
Write a command-line tool fixcalc that performs arithmetic on fixed-point decimal numbers. The tool reads a…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input format : <number <operator <number - Each number is a…
The task
**Input format**: `<number> <operator> <number>` - Each number is a decimal string with optional sign, optional integer part, optional decimal point, optional fractional part. - Operators: `+` (addition), `-` (subtraction), `*` (multiplication), `/` (division). - Whitespace around operators and numbers is arbitrary…