Create a command-line calculator at /usr/local/bin/fcalc that reads a CSV file where each row specifies a…
Create a command-line calculator at /usr/local/bin/fcalc that reads a CSV file where each row specifies a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input : CSV file with columns: op,operand1,operand2,format - op : one of add , sub , mul , div - operand1 …
The task
**Input**: CSV file with columns: `op,operand1,operand2,format` - `op`: one of `add`, `sub`, `mul`, `div` - `operand1`, `operand2`: decimal numbers as strings (may have leading zeros, trailing zeros, signs like `+0`, `-0`, or be empty) - `format`: a printf-style format string for a decimal, e.g., `%.2f`, `%.0f`,…
Part of ai-and/termgrade-environments.