Build a command-line tool /app/calc that performs exact fixed-point decimal arithmetic.
Build a command-line tool /app/calc that performs exact fixed-point decimal arithmetic.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). It accepts exactly one argument: the path to a CSV file. The CSV has no header, and uses comma as delimiter. Each row contains…
The task
It accepts exactly one argument: the path to a CSV file. The CSV has no header, and uses comma as delimiter. Each row contains either 3 or 4 fields: - `account_id` (non-empty string) - `operation` (one of: `ADD`, `SUB`, `MUL`, `DIV`, `ROUND`) - `amount` (string representing a decimal number with up to 4 decimal…
Part of ai-and/termgrade-environments.