Create a command-line program /app/calc that performs arithmetic on fixed-point decimal numbers with EXACT…
Create a command-line program /app/calc that performs arithmetic on fixed-point decimal numbers with EXACT…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Goal: Read a single line from stdin containing an arithmetic…
The task
**Goal:** Read a single line from stdin containing an arithmetic expression, evaluate it left-to-right with operator precedence (only `*` and `/` have higher precedence than `+` and `-`), and print the result to stdout followed by a newline.