Question
Using android studio The calculator is one of the essential applications in any mobile device. In this lab assignment, you will design, develop, and test
Using android studio
The calculator is one of the essential applications in any mobile device. In this lab assignment, you will design, develop, and test a simple calculator
The minimum calculator requirements are to:
- support four basic calculations (addition, multiplication, subtraction and division).
- support negative numbers
- The app layout has 10 buttons for numbers (0-9)
- The app layout has 4 buttons for +,=,/,* operations, a clear button and an equal sign button
- The app layout demonstrates efficient use of space
- All buttons in the app layout are aligned properly
- The Textview(s) used to display the result use reasonable font size.
- All buttons display the correct value in the result field when clicked.
-
The TextView gravity is set to right
-
The app handles leading zero suppression (ex 0003 = 3)
-
Numbers are appended correctly
-
The app supports "running" calculations from left to right as numbers are entered (Test 1+33-18*3/48 -> Did you get results = 1)?
-
(note if your app calculates results based on operator precedence, make sure to mention that in the comments when you submit)
- The app shows the intermediate result every time a user clicks in any one of the 4 operator
- A clear button resets the result field
- All operations work with no errors
- The app adapts/scales reasonably to changes in device screen orientation/size
- The app handles divide by zero scenario
- The app doesn't crash at any test scenario
- Optional Feature: The app has 4-digit precision for numbers after the decimal point.
- Optional Feature: Two separate buttons for clear and backspace OR (in case of one button) the clear button works as a backspace [Explain how it works at submission time]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started