Skip to content

danycli/Islamic-Inheritance-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A complete Islamic inheritance calculator in C based on Hamid Khan's book, with Awl cases, residue logic, and fixed shares.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages