Question: Build an application that invites the user to enter an integer number into each of two EditText boxes. The application must have four buttons, one
Build an application that invites the user to enter an integer number into each of two EditText boxes. The application must have four buttons, one for each of the arithmetic operators: addition, subtraction, multiplication, and division. When clicked, these buttons cause the application to perform the operation on the input numbers and display the result. The application must test the second integer for zero when the chosen operation is division. If it is division and the second operand is zero, an error message must be displayed. The application must have just one activity.
Step by Step Solution
3.38 Rating (154 Votes )
There are 3 Steps involved in it
There are 3 Labels 3 text fields 4 Command buttons ... View full answer
Get step-by-step solutions from verified subject matter experts
