Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimli570/csharp-lazy-calculator
https://github.com/jimli570/csharp-lazy-calculator
Last synced: about 9 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/jimli570/csharp-lazy-calculator
- Owner: jimli570
- Created: 2021-02-08T04:21:48.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-05T16:41:15.000Z (over 3 years ago)
- Last Synced: 2023-11-23T23:29:44.259Z (12 months ago)
- Language: C#
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lazy Calculator
The application reads UTF-8 encoded textfiles containing commands for the calculator. Filepath can be specified through command line input, if no path is specified 'math_data_3.txt' will be defaulted.
Operations the calculator can not determine directly, will by evaluated at print. Therefore the name 'Lazy Calculator'.
Examples of accepted input can be found in 'math_data_1.txt', 'math_data_2.txt' & 'math_data_3.txt'.
Written in C# 7.9, .NET Core 2.1.
## Valid commands
List of valid commands.
### Mathematical
- _registername_ **add** _value_
- _registername_ **substract** _value_
- _registername_ **multiply** _value_Note:
value can be a registernname, if they can be evaluated at print.
### Other
- _print_ **registername**
Note:
_registername_ has to either have a value in the register, or the possibility to be evaluated.
## Requirements
- .NET Core 2.1
## Running the application
Easiets way to run the application is by executing 'RunApplication.bat' which runs 'dotnet Calculator.dll' for you. Tests can be ran through Visual Studio.
## Solution Structure
- 'Calculator/' contains the Application
- 'Test/' contains tests written using NUnit3.