HF RL Explorer

Build a command-line tool fixed calc that performs arithmetic on fixed-point decimal numbers. The tool reads…

Build a command-line tool fixed calc that performs arithmetic on fixed-point decimal numbers. The tool reads…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - One line containing an expression of the form: <operand1 <operator <operand2 where…

The task

**Input contract:** - One line containing an expression of the form: `<operand1> <operator> <operand2>` where operator is one of `+`, `-`, `*`, `/`. - Operands are strings representing fixed-point decimal numbers with EXACTLY 2 decimal places (e.g., `123.45`, `-0.01`, `0.00`). They may have a leading sign. The…

Part of ai-and/termgrade-environments.