[SOLVED] ITCS5180 Homework 4- calculation IC4 1

35.00 $

Category:

Description

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.

__________________________________________________________