Create a command-line tool /app/fixcalc that performs fixed-point arithmetic operations on decimal strings…
Create a command-line tool /app/fixcalc that performs fixed-point arithmetic operations on decimal strings…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): One or more lines, each line exactly in the form: OPERATION A B SCALE where: -…
The task
**Input format (stdin):** One or more lines, each line exactly in the form: `OPERATION A B SCALE` where: - OPERATION is one of: `add`, `sub`, `mul`, `div` - A and B are decimal number strings (may include sign, integer part, decimal point, fractional part) - SCALE is a non-negative integer (number of decimal places…
Part of ai-and/termgrade-environments.