[SOLVED] ITCS5180 Homework 4- calculation IC4 1

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Android-calculation-IC4_1-gnvrld.zip (138 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
Rate this product

This is a short review of the previous weeks tasks. We will do two simple tasks, adding, and subtracting.

 

Main Activity
 

Calculating Activity
 

Calculating Activity
(a) Main activity (b) Adding (c) Subtracting
Figure 1, Screens

Please complete the following:

  1. There will be two activities, (i) Main activity, and (ii) Calculation activity.
  2. Main Activity:
    • Will have two Buttons: Add and Subtract.
    • One TextView with a fixed String, “Result.” 2.3. Another TextView to display the result.
  3. Calculation activity:
    • One TextView displaying the operation it is doing.
    • Will have two EditTexts to take Double inputs.
    • One Button to calculate the result and get back to the main activity.
  4. Tasks:
    • On Add Button clicked:
      • Go to Calculation activity, and set the text of operation TextView to “Adding.”
      • Take two inputs (Doubles).
      • On Calculate clicked get back to the Main activity with the result and set the result to TextView for result.
    • On Subtract Button clicked:
      • Go to Calculation activity, and set the text of operation TextView to “Subtracting.”
      • Take two inputs (Doubles).
      • On Calculate clicked get back to the Main activity with the result and set the result to TextView for result.

__________________________________________________________

  • Android-calculation-IC4_1-gnvrld.zip