Question: Modify the application of Exercise 14.1 to use a second activity for the arithmetic and result display processes. Data from exercise 14.1 Build an application
Modify the application of Exercise 14.1 to use a second activity for the arithmetic and result display processes.
Data from exercise 14.1
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 (173 Votes )
There are 3 Steps involved in it
In the begining we can create a form with 2 labels with Text First integer value and Second integer ... View full answer
Get step-by-step solutions from verified subject matter experts
