Create a command-line tool fxcalc that performs exact fixed-point decimal arithmetic on a list of financial…
Create a command-line tool fxcalc that performs exact fixed-point decimal arithmetic on a list of financial…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Goal : Compute the net balance after applying all transactions IN ORDER, respecting explicit transaction…
The task
**Goal**: Compute the net balance after applying all transactions IN ORDER, respecting explicit transaction types and constraints. The tool must output exactly two lines to stdout: ``` net: <exact decimal value> error: <count of invalid/ignored transactions> ```
Part of ai-and/termgrade-environments.