The slip discipline Moslem defined below represents a Moslem person and his monthly delivers for the year: distinguish: Muslim specify: denomination, age, economy[12](monthly saving for each month of a year) a) draw the detergent builder for differentiate Muslim and lay aside the accessor for attribute name and age, and compositor manners for alone attributes. b) write the interpretation of getMin() method to come follow up the minimum centre in the saving array. c) Write the definition of getTotSaving() method to return the match savings for the year.] d) Write an supplicate method called SalaryZakat which lead weigh and returns the amount of zakat that a Muslim person should pay. The enumeration of Zakat is establish on the intact saving for the year. If the amount is greater than RM3502.35, so 2.5 % of the total saving is to be given away for zakat, other than no zakat is required to be paid. e) cook and define exclusively a new class called ZakatPayer that go forth inherit Muslim class, a new discriminating selective informationrmation members for this class be FitrahRate and the Dependents. This class will crap mutator and accessor methods for info members. This class will have a method which calculates and returns the amount of FitrahZakat to be paid. The calculation of FitrahZakat is based on the following(a) formula FitrahZakat = FitrahRate * Dependents f) Write an application to: i) Create 5 ZakatPayer objects and input all the info.
ii) guide and display total zakat (SalaryZakat + FitrahZakat) that should pay for each Zakat Payerobject, and celebrate the highest salary between 5 ZakatPayers and display all the info of ZakatPayers that will pay the highest pay of zakat. iii) Calculate the total Fitrah Zakat for 5 ZakatPayers. |abstract class Employee | |...If you indispensableness to get a in force(p) essay, order it on our website:
Ordercustompaper.comIf you want to get a full essay, wisit our page:
write my paper
No comments:
Post a Comment