Create a command-line tool /app/fxcalc that reads a ledger file and outputs a formatted balance report.
Create a command-line tool /app/fxcalc that reads a ledger file and outputs a formatted balance report.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: A ledger file path is passed as the only argument. The file contains lines of three types: - DATE…
The task
**Input format:** A ledger file path is passed as the only argument. The file contains lines of three types: - `DATE | ACCOUNT | AMOUNT` – a transaction (AMOUNT uses `+` for credit, `-` for debit, exactly 2 decimal places, can be negative zero `-0.00`) - `ACCOUNT = OPENING_BALANCE` – initial balance declaration (2…
Part of ai-and/termgrade-environments.