Skip to content

Latest commit

 

History

History
59 lines (37 loc) · 1.24 KB

File metadata and controls

59 lines (37 loc) · 1.24 KB

💰 Python Compound Interest Calculator (CLI)

A simple command-line compound interest calculator built using Python.
This project focuses on input validation using loops and calculating compound interest using the standard formula.


⚙️Versions

  • Version 1→ Basic functions/if-elif/Error handling/Loop
  • Version 2→ def/Looped/sorted/

🚀 Features

  • Calculates compound interest using formula:
    • A = P(1 + r/100)^t
  • Input validation using while loops
  • Handles invalid inputs with try-except
  • Prevents negative or zero values
  • Clean and simple CLI interaction

⚒️ Requirements

  • Python 3.x

(No external libraries required)


🧠 What I Learned

  • Using while True loops for input validation
  • Handling errors using try-except
  • Working with numeric input (float, int)
  • Applying mathematical formulas in code
  • Using pow() for exponentiation
  • Basic CLI interaction

⚠️ Limitations

  • No menu system
  • No breakdown (only final result)
  • No support for different compounding types
  • CLI only (no GUI)

📌 Project Level

Beginner


⭐️ This project is part of my Python learning journey.