Create a command-line calculator that performs fixed-point arithmetic operations with configurable…
Create a command-line calculator that performs fixed-point arithmetic operations with configurable…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): - Each line is an expression: OPERAND1 OPERATOR OPERAND2 - OPERAND1 and OPERAND2 are decimal…
The task
**Input format (stdin):** - Each line is an expression: `OPERAND1 OPERATOR OPERAND2` - OPERAND1 and OPERAND2 are decimal numbers with exactly 2 decimal places (e.g., `12.50`, `0.01`, `999.99`) - OPERATOR is one of: `+`, `-`, `*`, `/` - Input may contain empty lines, which must be silently ignored - Lines may have…
Part of ai-and/termgrade-environments.