HF RL Explorer

Create a command-line tool /app/fixcalc that reads a file of fixed-point decimal operations and outputs…

Create a command-line tool /app/fixcalc that reads a file of fixed-point decimal operations and outputs…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - The tool accepts exactly one argument: a path to a UTF-8 encoded file. - Each line in the…

The task

**Input contract:** - The tool accepts exactly one argument: a path to a UTF-8 encoded file. - Each line in the file is an operation: `ADD value`, `SUB value`, `MUL value`, `DIV value`, or `ROUND n` where `value` is a decimal string and `n` is an integer 0-10. - The tool starts with balance = 0 and processes lines…

Part of ai-and/termgrade-environments.