Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dropdrage/divisioncalculator
Division Calculator
https://github.com/dropdrage/divisioncalculator
csharp test-task unity
Last synced: 1 day ago
JSON representation
Division Calculator
- Host: GitHub
- URL: https://github.com/dropdrage/divisioncalculator
- Owner: DropDrage
- Created: 2022-09-29T09:36:12.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-21T17:21:02.000Z (about 2 years ago)
- Last Synced: 2024-12-11T20:32:36.510Z (11 days ago)
- Topics: csharp, test-task, unity
- Language: C#
- Homepage:
- Size: 1.55 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Division Calculator
Calculator that can only divide.
_Test task_.## Requirements
- **Input field**
- Valid characters for input are digits and `/`.
- Input is invalid if it contains non-valid characters.
- Input should be saved.
- Input should be restored on app start.- **Evaluate button**
- If **Evaluate button** is clicked and input is valid then print an evaluation result in the **Input field**.
- Evaluation algorithm should be simple.
- If **Evaluate button** is clicked and input is invalid then print "Error" in the input field.
- If **Evaluate button** is clicked and input is invalid then show the **Error popup**.- **Error popup**:
- Error popup has a **New equation button**.
- If the **New equation button** is clicked then clear input field.
- If the **New equation button** is clicked then close Error popup.
- Error popup has a **Quit button**.
- If the **Quit button** is clicked then clear saved input.
- If the **Quit button** is clicked then close the app.## Feedback
Mark 4-:
- [X] `ICalculatorPresenter` depends on ISorryDialogPresenter.
- [X] `ICalculatorPresenter` took over part of the logic related to data storage.