Build a command-line tool /app/ledger that reads a transaction log from /data/ledger.dat and computes the…
Build a command-line tool /app/ledger that reads a transaction log from /data/ledger.dat and computes the…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format ( /data/ledger.dat ): - One transaction per line. - Each line is: ACCOUNT AMOUNT where ACCOUNT…
The task
**Input format** (`/data/ledger.dat`): - One transaction per line. - Each line is: `ACCOUNT AMOUNT` where ACCOUNT is a non-empty string (may contain spaces, tabs, Unicode) and AMOUNT is a fixed-point decimal with exactly 2 decimal places. - The separator between ACCOUNT and AMOUNT is exactly two spaces (` `). The…
Part of ai-and/termgrade-environments.