📱 Simple Calculator App – SDLC Stages

1. Requirement Analysis

Objective: Build a simple calculator mobile/desktop app that can perform basic arithmetic operations.

Functional Requirements:

User should be able to input two numbers.
App should support basic operations: addition (+), subt…


This content originally appeared on DEV Community and was authored by Nimish Bordiya

1. Requirement Analysis

Objective: Build a simple calculator mobile/desktop app that can perform basic arithmetic operations.

Functional Requirements:

  1. User should be able to input two numbers.
  2. App should support basic operations: addition (+), subtraction (−), multiplication (×), division (÷).
  3. Display the result on the screen. 4.Provide a "Clear" button to reset inputs and result.

Non-Functional Requirements:

  1. Easy-to-use interface.
  2. Fast response (instant calculations).
  3. Should not crash for invalid inputs (e.g., division by zero).

2. Design
Wireframe / Sketch (simple UI idea):

 --------------------------
|   Simple Calculator      |
|--------------------------|
|  [  Input 1  ]           |
|  [  Input 2  ]           |
|                          |
|  [+]  [-]  [×]  [÷]      |
|                          |
|  Result: [      ]        |
|                          |
|  [ Clear ]               |
 --------------------------

  • Two input boxes for numbers.
  • Four buttons for operations.
  • A result box to show the answer.
  • A "Clear" button.

3. Development (Pseudocode)

// Start Calculator App

BEGIN

DISPLAY "Enter first number:"
READ num1

DISPLAY "Enter second number:"
READ num2

DISPLAY "Choose operation: +, -, *, /"
READ op

IF op == "+"
    result = num1 + num2
ELSE IF op == "-"
    result = num1 - num2
ELSE IF op == "*"
    result = num1 * num2
ELSE IF op == "/"
    IF num2 == 0
        DISPLAY "Error: Division by zero not allowed"
    ELSE
        result = num1 / num2
    ENDIF
ENDIF

DISPLAY "Result = " + result

// Clear function resets num1, num2, and result

END

4. Testing Plan

Test Cases:

| Test Case ID | Input 1 | Input 2 | Operation | Expected Output         | Notes             |
| ------------ | ------- | ------- | --------- | ----------------------- | ----------------- |
| TC01         | 5       | 3       | +         | 8                       | Basic addition    |
| TC02         | 10      | 4       | -         | 6                       | Subtraction       |
| TC03         | 6       | 7       | *         | 42                      | Multiplication    |
| TC04         | 20      | 5       | /         | 4                       | Division          |
| TC05         | 8       | 0       | /         | Error: Division by zero | Edge case         |
| TC06         | A       | 2       | +         | Error: Invalid input    | Non-numeric input |
| TC07         | 100     | 200     | -         | -100                    | Large numbers     |

Testing Types:

  • Unit Testing: Verify each function (add, subtract, multiply, divide).
  • Integration Testing: Check interaction between UI and logic.
  • System Testing: Ensure the entire app works smoothly.
  • User Acceptance Testing (UAT): Ask real users to try for ease of use.


This content originally appeared on DEV Community and was authored by Nimish Bordiya


Print Share Comment Cite Upload Translate Updates
APA

Nimish Bordiya | Sciencx (2025-10-01T08:27:56+00:00) 📱 Simple Calculator App – SDLC Stages. Retrieved from https://www.scien.cx/2025/10/01/%f0%9f%93%b1-simple-calculator-app-sdlc-stages/

MLA
" » 📱 Simple Calculator App – SDLC Stages." Nimish Bordiya | Sciencx - Wednesday October 1, 2025, https://www.scien.cx/2025/10/01/%f0%9f%93%b1-simple-calculator-app-sdlc-stages/
HARVARD
Nimish Bordiya | Sciencx Wednesday October 1, 2025 » 📱 Simple Calculator App – SDLC Stages., viewed ,<https://www.scien.cx/2025/10/01/%f0%9f%93%b1-simple-calculator-app-sdlc-stages/>
VANCOUVER
Nimish Bordiya | Sciencx - » 📱 Simple Calculator App – SDLC Stages. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/10/01/%f0%9f%93%b1-simple-calculator-app-sdlc-stages/
CHICAGO
" » 📱 Simple Calculator App – SDLC Stages." Nimish Bordiya | Sciencx - Accessed . https://www.scien.cx/2025/10/01/%f0%9f%93%b1-simple-calculator-app-sdlc-stages/
IEEE
" » 📱 Simple Calculator App – SDLC Stages." Nimish Bordiya | Sciencx [Online]. Available: https://www.scien.cx/2025/10/01/%f0%9f%93%b1-simple-calculator-app-sdlc-stages/. [Accessed: ]
rf:citation
» 📱 Simple Calculator App – SDLC Stages | Nimish Bordiya | Sciencx | https://www.scien.cx/2025/10/01/%f0%9f%93%b1-simple-calculator-app-sdlc-stages/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.