Coder Social home page Coder Social logo

calcnetapi's Introduction

CalcNetAPI

Introduction

This is a simple calculator API which can do Addition, Subtraction, Multiplication, Division and Modulus.

Usage

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

Components

What I have done

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

Future intentions

✨ Add more functions to the API (unit converter, etc.).

✨ Add hardware acceleration feature using FPGA.

calcnetapi's People

Contributors

hle8 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.