Skip to content

ArchRafail/SimpleCalculator

Repository files navigation

SimpleCalculator



The task was the next:
1. Create simple calculator app with design according to picture.
Colors, text, location of buttons - reproduced according to picture.
2. You have to use most suitable container to match design - GridLayout, TableLayout or LinearLayout.
In my case was used Table Layout.
3. As a text values, dimensions and colors must be used resourses.
4. All elements should have posibility to scale. The same touches to text dimensions.
5. Add listeners for buttons click.
6. App must realized basic functions (adding, subtraction, multiply, divide, percent from number).
7. Putting reverse sign of number.
8. Making fractional number.
9. Cleaning the output results.
10. Consider going beyond the size limits of the data type used.

How to work app:
a. Input of 2 numbers realized in 1 line with operation sign between.
b. After pushing "=" line changes to result of operation.
c. You can pushed other operation sign, for example "+", and line changes to the result of operation with Your new operation sign "+".
d. Decimal separator puts zero, if no any digit was before.
e. Operation sign can be changed, if no second number was inputted.
f. If number should be divided by zero, the error message will shows.

About

Android application with adding, substraction, multiply and divide operations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages