A robust and interactive command-line calculator developed in Python, featuring advanced mathematical operations, strong input validation, dataclasses, type hints, and a scalable menu-driven architecture.
Advanced Python Calculator is a console-based application designed to perform both basic and advanced mathematical calculations efficiently.
The project demonstrates modern Python programming concepts including:
- Functions
- Dataclasses
- Type Hinting
- Error Handling
- Modular Design
- User Input Validation
This calculator provides a clean menu-driven interface while maintaining reliability and extensibility.
- Addition
- Subtraction
- Multiplication
- Division
- Power Calculation
- Square Root
- Logarithm (Custom Base Support)
- Sine Function
- Cosine Function
- Tangent Function
- Input Validation
- Error Handling
- Interactive Menu System
- Degree-Based Trigonometric Functions
- Dataclass-Based Menu Architecture
- Type Hints for Better Maintainability
| Technology | Purpose |
|---|---|
| Python 3 | Main Programming Language |
| math | Mathematical Functions |
| dataclasses | Menu Structure |
| typing | Type Hints |
| CLI | User Interface |
Advance_Calculator_
│
├── Advance_Calculator.py
├── README.md
└── LICENSE
git clone https://github.com/Wadan3/Advance_Calculator_.gitcd Advance_Calculator_python Advance_Calculator.pyor
python3 Advance_Calculator.py========================================
Advanced Calculator (Pro)
========================================
1. Addition (+)
2. Subtraction (-)
3. Multiplication (*)
4. Division (/)
5. Power (^)
6. Square Root (sqrt)
7. Logarithm (log)
8. Sine (sin)
9. Cosine (cos)
10. Tangent (tan)
11. Exit
This project demonstrates:
- Object-Oriented Thinking
- Functional Programming Concepts
- Python Dataclasses
- Error Handling Techniques
- Mathematical Computation
- CLI Application Development
Current Version:
v1.0.0
This project is licensed under the MIT License.
Abdul Mosawer Wadan
Computer Engineering Student
Amirkabir University of Technology (Tehran Polytechnic)
GitHub: https://github.com/Wadan3
