- .NET 8 SDK
From the repository root:
dotnet build calculator_exercise/calculator_exercise.csprojPass an instruction-file path after --:
dotnet run --project calculator_exercise/calculator_exercise.csproj -- path/to/instructions.txt- Input is supplied in a
.txtfile, with one operator and one number on each non-empty line. - Numbers are parsed as
decimalvalues using.as the decimal separator. - Operators are case-insensitive.
- Blank lines and repeated whitespace are ignored.
applymust appear exactly once and only as the final instruction.- Invalid input, missing files, and division by zero produce a clear error message and a non-zero exit code.