Use case modeling for calculator

I need help modeling a usage chart from a theme, it will be in the java GUI

Create a calculator that

1. Repeat the user to enter a legitimate arithmetic operator that includes a number, the + operator, and the brackets '(' and ')';

2. When the user clicks the "Calculate" button, the result is displayed;

3. Some legitimate statement would be ((3 + 2) -4 + 2) (equal to 3) and (-2 + 3) - (3-1) (equal to -1);

4.You should not use a pre-existing function that simply takes an operator as a parameter and returns the result, but you must write the logic for parsing each character in your code.

5. Save the last statement and answer so that it appears when the user clicks the "Last calculation" button.

I developed two usage diagrams using UML on netbeans 6.5.1, one use case. I'm not sure if it contains too many use cases, etc., and the other is that, in my opinion, may be too vague for topic.i hope to get some feedback on whether the use case is suitable, thanks .i included what would be in the GUI

use cast 1

alt textalt text

+5
source share
2 answers

, . , - , , , . , , , .

, , , Java backspace, . , , , - .

+3

, , - , , . , , , . , , . , .

:

  • , . Press Calculate , Calculate is. Press Last Calculation Store Last Calculation ..

  • , Press Backspace. Backspace - , .

  • ParserSys . . .

  • Store Result ( .) . , , .

Edit:

.. , , .

, : "[] []" ( - ). [] - . , , .

+4

All Articles