Giter Site home page Giter Site logo

javatest's Introduction

Solvo's Java test

Fork this repository to do your work.

Statement

You need to build a SOAP webservice in Java that receive a list of numbers and mathematical operations and return the result of solving them in order of precedence.

Features:

  • This list is built by an external web application (do not implement it), it allows the user to insert the numbers without any validation.
  • The application will only solve basic operations (addition, subtraction, multiplication and division) to whole numbers and decimals.
  • To represent numbers in thousands can use "commas" or "spaces" or both, for example 10,000 or 5,000,321 or 10, 321 or 3 000 that can be combined with points to set a valid number 10,592.76.
  • You should be careful with the position of the comma, realize that 100,02 or 10,0000 or ,302 are not valid.
  • Return or raise an error if exist an invalid input.

These are valid inputs ([ ] denotes list):

[10,592.76, '+', '780', '+', 10000, '*', 200.76]
[1, '/', 323, '-', 765]
[1, '+', 2]

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.