User manual - MarcosPiedra/CalculatorService GitHub Wiki
In this document explain how to use the software.
The software is composed for a client and server, the client is a console that you can interact with the server part. And the server will manage the logic and store the data if it is needed.
In the next picture you can see the menu when execute the console:
The general proccedement is type the operation, put the data it is required and the client will interact with the server and will show the results. In all the steps (the request to server and response) it shows the raw data transferred.
In the picture above you can see line operation ->
, in this line you need to put some of the actions (a letter) to perform it. The operations and the data that require it is the following:
- Divide (typing
D
). Need to enter the dividend and divisor. The response will show the quotient and remainder. - Multiplication (typing
M
). Need to enter a list of numbers separated by comma. The response will show the product of them. - Square (typing
Q
). Need to enter a number. The response will show the square. - Substract (typing
S
). Need to enter a minuend and a subtrahend. The response will show the difference. - Sum (typing
A
). Need to enter a minuend and a subtrahend. The response will show the difference.1 - Query (typing
G
). Need to enter a trackId. The response will show the operations related to this number. - Get all operations (typing
O
). The response will show all the operations tracked. - Using a tracking Id (typing
U
). Need to enter a trackId. This trackId is used in the next operations, the input line will change fromoperation ->
tooperation (track id entered) ->
. - Reset tracking Id (typing
R
). Remove the current tracking Id, and the next operation will not related with a track id. - Operations list (typing
I
). Show the operation list info. - Exit (typing
E
).
To consider:
- If you put incorrect data, don't send the request and will need to type an operation.
- Each operation has different rules. Please visit the rules. If you send an invalid data for the system, it will show the incorrect data.
- If there are any other error, then will show it.
An example: