The calculator is currently written in a functional style. Refactoring it into an object-oriented design would make the code more structured, scalable, and easier to maintain.
Proposed Changes:
Create a Calculator class with methods like add, subtract, multiply, etc.
Store state (current value) inside the class instead of passing numbers around.
This design will make future extensions (e.g., scientific functions, GUI) easier.
Benefits:
Cleaner organization
Easier maintenance
Better scalability