Skip to content

πŸ’‘ [Feature]: Add calculation chaining and emoji interface to CalculatorΒ #530

@Alvi24-hub

Description

@Alvi24-hub

❓ Problem Statement

The current calculator has two limitations:

  1. No calculation chaining β€” After performing an operation, you cannot use that result with a new number. You must start a completely new calculation each time.
  2. No "new calculation" option β€” To start fresh, users currently have to exit and re-run the program.
  3. No emoji interface β€” The project guidelines require interactive emojis in terminal output, but the current calculator uses plain text only.

πŸš€ Proposed Enhancement

Adding new features to the existing calculator:

  1. Calculation Chaining πŸ”— β€” After getting a result, users can choose to chain that result with a new number (e.g., 10 + 5 = 15, then 15 Γ— 2 = 30 in the same session).
  2. New Calculation πŸ†• β€” Reset the current result and start a fresh calculation without exiting the program.
  3. Emoji Interface 🎨 β€” Add emojis throughout the interface to make it interactive and engaging as per project guidelines.

πŸ› οΈ Suggested Implementation

The existing class-based structure will be preserved. The following changes will be made:

  • Add a chaining loop inside start_calculation() method (similar to working code from another contributor)
  • Add emojis to all print statements
  • Add docstrings to all methods (currently missing)
  • Add proper error handling for chaining operations

  • I am a registered GSSoC 2026 contributor.
  • I would like to implement this feature myself.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions