write a C++ program which take inputs from the user/keyboard and calculate his ZAKAT.
get the input from user may include
-Bank balance
-Amount invested in business
-Amount given to other business partners as loan
and
-Amount payable to others

C'mon, I am sure you can do better than that? Read what you have written back, and ask yourself how you would respond to that? Would you immediately think "oh, I must spend my time writing code for someone who has demanded it of me to save them doing their own assignment" or would you think "how rude, I'm not helping them if they cannot be bothered to put any effort in themselves"???

Quite apart from anything else, we have rules here which clearly state you should "provide evidence of having done some work yourself if posting questions from school or work assignments."

So, sit back down, take a deep breath, rewrite your question (rather than just copying your assignment verbatim) to explain where you are stuck and show us your code so we can help point where you have gone wrong.

You know it makes sense! :-)

And WHAT THE FARK IS ZAKAT? Sorry for my French, but my ignorance of Middle-Eastern acronyms is appallingly bad...

I ws going to post you a "Let me Google that for you" link, but in deference to your seniority I won't :)
Anway...

The Zakat is a form of giving to those who are less fortunate. It is obligatory upon all Muslims to give 2.5 % of wealth and assets each year (in excess of what is required) to the poor. ... Giving the Zakat is considered an act of worship because it is a form of offering thanks to God for the means of material well-being one has acquired.

just a C Learner Hope You will find it use full. and others can point out if any quick way to do that.

/* Online Request for Zakat Calculation
   Written By NeonMamba C Learner Programmer */

   #include<stdio.h>
   #include<conio.h>
    void main(){
    long int    BankBalance,HandCash,Gold,Property,AmountPayable,Value,TotalAssest;
    long float  zakatpercentage = 0.025;

    clrscr();
    printf("  =========================================================== ");
    printf("\n \t Please Enter your Bank Balance : ");
    scanf("%li",&BankBalance);
    clrscr();
    printf("  =========================================================== ");
    printf("\n \t BankBalance   : %li",BankBalance);
    printf("\n \t Please Enter Your Handcash : ");
    scanf("%li",&HandCash);
    clrscr();
    printf("  =========================================================== ");
    printf("\n \t BankBalance   : %li",BankBalance);
    printf("\n \t Handcash  : %li",HandCash);
    clrscr();
    printf("  =========================================================== ");
    printf("\n \t BankBalance   : %li",BankBalance);
    printf("\n \t Handcash      : %li",HandCash);
    printf("\n \t Please Enter Amount of your Gold & Siler : ");
    scanf("%li",&Gold);
    clrscr();
    printf("  =========================================================== ");
    printf("\n \t BankBalance   : %li",BankBalance);
    printf("\n \t Handcash      : %li",HandCash);
    printf("\n \t Gold & Silver : %li",Gold);
    clrscr();
    printf("  =========================================================== ");
    printf("\n \t BankBalance   : %li",BankBalance);
    printf("\n \t Handcash      : %li",HandCash);
    printf("\n \t Gold & Silver : %li",Gold);
    printf("\n \t Please Enter Property Amount : ");
    scanf("%li",&Property);
    clrscr();
    printf("  =========================================================== ");
    printf("\n \t BankBalance   : %li",BankBalance);
    printf("\n \t Handcash      : %li",HandCash);
    printf("\n \t Gold & Silver : %li",Gold);
    printf("\n \t Property      : %li",Property);
    printf("\n \t Please Enter Amount Payable to other's : ");
    scanf("%li",&AmountPayable);
    clrscr();
    printf("  =========================================================== ");
    printf("\n \t BankBalance   : %li",BankBalance);
    printf("\n \t HandCash      : %li",HandCash);
    printf("\n \t Gold & Silver : %li",Gold);
    printf("\n \t Property      : %li",Property);
    printf("\n \t AmountPayable : %li",AmountPayable);
    Value=BankBalance+HandCash+Gold+Property+AmountPayable;
    TotalAssest=Value*zakatpercentage;
    clrscr();
    printf("  ============================================================ ");
    printf("\n \t BankBalance   : %li",BankBalance);
    printf("\n \t HandCash      : %li",HandCash);
    printf("\n \t Gold & Silver : %li",Gold);
    printf("\n \t Property      : %li",Property);
    printf("\n \t AmountPayable : %li",AmountPayable);
    printf("\n  ============================================================ ");
    printf("\n \t TotalAssest   : %li  * 0.025",Value);
    printf("\n \t   Zakat       : %li",TotalAssest);
    printf("\n  ============================================================ ");
    getch();
    }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.