Skip to content

PrograMario12/Programming.Calculator.Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Mini Calculator – Structured Programming Project

This project is a simple command-line calculator built as an introductory exercise in structured programming. It demonstrates the use of sequence, selection, repetition, and modularity through basic arithmetic operations.

✨ Features

  • Addition ➕

  • Subtraction ➖

  • Multiplication ✖️

  • Division ➗ (with division-by-zero handling)

  • Interactive menu loop until the user exits

  • Input validation for incorrect or non-numeric values

  • Functions for modular and clean code organization

  • Optional: operation history tracking

🎯 Purpose

The project aims to help beginners understand how to structure code using fundamental programming concepts and good practices.

🚀 How to Run

1.Clone the repository:

git clone https://github.com/your-username/mini-calculator.git

2.Run the program with Python:

python calculator.py

📚 Learning Outcomes

  • Applying the structured programming paradigm

  • Using control structures (loops and conditionals)

  • Handling errors and validating user input

  • Writing reusable functions for clarity and maintenance

About

This project is a simple command-line calculator built as an introductory exercise in structured programming.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages