Modify the application of Exercise 14.1 to use a second activity for the arithmetic and result display

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 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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Programming the World Wide Web

ISBN: 978-0133775983

8th edition

Authors: Robert W. Sebesta

Question Posted: