- input numbers are integer, any other numbers (like float) are invalid numbers. This is because if delimiter is a period, it can cause problem and there are no clear indication on "number" having to include float.
- output number can be float, since there are division.
- Main project code is in restaurantCalculator
- Unit test code is in restaurantCalculator.Tests
- Main project:
- go to restaurantCalculator
- dotnet run
- Configure Alternate Delimiter: set custom alternate delimiter here, or press enter pass it to use default value (\n)
- Allow negative values (y/n): toggle to use negative value or not. Any other input than 'y' will use default value (not allow negative values)
- Set upper bound: set upperbound value here, or press enter pass it to use default value (1000)
- Then input the string for calculation. Everytime the calculation done, the loop repeats to allow user to set different configuration and input value.
- Ctrl-C to end
- Unit tests:
- go to restaurantCalculator.Tests
- dotnet test