Implement a command-line tool fpcalc that performs arithmetic operations on fixed-point decimal numbers. The…
Implement a command-line tool fpcalc that performs arithmetic operations on fixed-point decimal numbers. The…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format : Each line is a whitespace-separated triple: OPERAND A OPERATOR OPERAND B - OPERAND A and…
The task
**Input format**: Each line is a whitespace-separated triple: `OPERAND_A OPERATOR OPERAND_B` - OPERAND_A and OPERAND_B are decimal strings with EXACTLY 2 decimal places, preceded by an optional minus sign. No leading zeros except for the single zero before the decimal point in numbers like `0.XX`. Valid examples:…
Part of ai-and/termgrade-environments.