This is a simple calculator API which can do Addition, Subtraction, Multiplication, Division and Modulus.
http://<server-ip>:<port>/calculator/<operator-name>?firstNum=<your-first-number>&secondNum=<your-second-number>
Where:
<server-ip>
IP address of server
<port>
Port number of server
<operator-name>
There are 5 operators: Add, Subtract, Multipy, Divide and Modulo
<your-first-number>
Enter your first number
<your-second-number>
Enter your second number
Task | Status |
---|---|
Create an ASP.Net Core Web API | ✅ |
Clean up the project by deleting the WeatherForecast class and WeatherForecastController | ✅ |
Create a new api controller called calculator | ✅ |
Create a method named Add accepting 2 decimal parameters | ✅ |
Check returning sum of the two parameters | ✅ |
Create a method named Subtract accepting 2 decimal parameters | ✅ |
Check returning difference of the two parameters | ✅ |
Create a method named Multiply accepting 2 decimal parameters | ✅ |
Check returning product of the two parameters | ✅ |
Create a method named Divide accepting 2 decimal parameters | ✅ |
Check returning quotient of the two parameters | ✅ |
Create a method named Modulo accepting 2 decimal parameters | ✅ |
Check returning remainder of the two parameters | ✅ |
Create a class library and move the logic from API controller into it | ✅ |
Create unit tests for the class library | ✅ |
✨ Add more functions to the API (unit converter, etc.).
✨ Add hardware acceleration feature using FPGA.