Data members

Write a program which consists of a class namedZakat and consists of two data members

OwnerName andTotalamount, the class should also consists ofthree constructors i.e. Default

constructor , one argument constructor and two argumentconstructor.

The class should further consists of a member functionnamed Cal_zakat () which calculate the

zakat.

It should be keep in mind that the zakat will becalculated only if the Totalamount is greaterthan

or equal to 20,000.

In main, define three object of this class for respectiveconstructors and also display the zakat for

each object.

Note: The zakat will becalculated by the formula (Totalamount *2.5)/100;

The post Data members appeared first on My Assignment Online.

GET HELP WITH YOUR PAPERS

CLICK HERE TO GET THIS ANSWER FROM EXPERTS DONE

WhatsApp
Hello! Need help with your assignments?