Skip to content

Latest commit

 

History

History
70 lines (40 loc) · 1.98 KB

File metadata and controls

70 lines (40 loc) · 1.98 KB

Islamic Inheritance Calculator (C Language)

This is a fully functional Islamic inheritance calculator written in pure C, designed with simplicity, clarity, and modularity in mind. Built according to the rules and exceptions outlined in Islamic Law of Inheritance by Hamid Khan.


📌 Features

  • Calculates fixed Qur'anic shares (e.g. for spouse, children, parents)
  • Handles Awl cases (proportional reduction when shares exceed 100%)
  • Distributes residue to residuary heirs or returns it to primary heirs if needed
  • Modular functions like checkPrimaryHeirs(), calculateResidue(), etc.
  • Smart heir validation — skips checks intelligently based on known rules
  • Designed for readability and easy testing (no unnecessary complications)

Concepts Used

  • Arrays, strings, conditionals, loops
  • User-defined functions
  • Menu-driven interface
  • Frame-style console output for neat user experience

🗂️ File Structure

Islamic-Inheritance-Calculator

├── main.c

└── README.md


📸 Preview

1

✍️ Author

Danial Ahmed (DANY)
🎓 CS Student @ COMSATS Abbottabad
🎮 Gamer | 🎨 Designer | 👨‍💻 C Programmer

Instagram
LinkedIn


⚠️ Disclaimer

This calculator is based on standard Sunni Islamic principles as described in Hamid Khan's work. It’s a learning project, not a legal tool.


📜 License

MIT License — feel free to use and modify (credit appreciated!)


Star the repo if you find it useful
🤝 Open to collaborations and improvements