QUESTION 2 [70 MARKS] The Inland Revenue Board of Malaysia (IRBM) is one of the main revenue collecting agencies of the

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

QUESTION 2 [70 MARKS] The Inland Revenue Board of Malaysia (IRBM) is one of the main revenue collecting agencies of the

Post by answerhappygod »

Question 2 70 Marks The Inland Revenue Board Of Malaysia Irbm Is One Of The Main Revenue Collecting Agencies Of The 1
Question 2 70 Marks The Inland Revenue Board Of Malaysia Irbm Is One Of The Main Revenue Collecting Agencies Of The 1 (251.21 KiB) Viewed 53 times
QUESTION 2 [70 MARKS] The Inland Revenue Board of Malaysia (IRBM) is one of the main revenue collecting agencies of the Ministry of Finance. One of the services provided by IRBM is collecting an individual income tax that shall be charged for each year of assessment. Through digital initiatives introduced by the IRBM board, you as a software engineer have been given a task to develop a system based on the UML diagram in Figure 4. The system is called the e-Filing system, which allows taxpayers to fill in and submit income tax forms online. The execution of the system starts with the creation of a taxpayer as a system user. The taxpayer is required to input the amount of annual employment income, the eligible individual's reliefs (exemption) and tax rebate as shown in Figure 5 with the information provided in Table 5. Based on this information, several calculations shall be executed by the system like the following: i. To calculate an amount of Total Income based on expression in Figure 6. ii. To calculate an amount of Total Exemption based on expression in Figure 7. To calculate an amount of Taxable Income based on expression in Figure 8. iv. To calculate an amount of Income Tax Amount based on expression in Figure 9 and should be based on information in Table 6. To calculate an amount of Tax Charged based on expression in Figure 10. The tax charge amount should be set to zero if the tax charged is negative. vi. To calculate an amount of Tax to Be Paid based on expression in Figure 11. The output of the system can be found in Figure 12. V. By following the system requirement above, develop a complete Java program based the following questions: (a) Develop the Java program by applying the interface concept for EzHasil. (b) Develop Efiling class by applying an abstraction concept. [3 marks] [2 marks]
public class TaxReportingMain { public static void main(String[] args) { Scanner input = new Scanner (System.in); //user object creation System.out.println ("**INCOME **"); System.out.print ("Employment Salary: RM"); //data input for Taxpayer income System.out.println("**EXEMPTION**"); System.out.print ("Donation: RM"); //data input for tax reliefs (Exemption) & tax rebate System.out.println("**TAX SUMMARY**"); //output data for tax summary Figure 13
**TAX SUMMARY** Tax Payer Name: Ali Tax Number: SG001212 Tax Submission Date: 20 March 2022 Total Annual Income: RM43000.0 Total Annual Exemption: RM3620.0 Taxable Amount: RM30380.0 Income Tax Amount: RM461.4 Amount Of Tax Charged: RM0.0 Amount of (Tax To Be Paid) or (Refund with symbol): RM-360.0 Figure 12 Annual Gross Income Individual Reliefs (Exemption) Tax Rebate Range of Taxable Income Less than 5,000 Less than 20,000 Less than 35,000 Less than 50,000 Class Taxpayer (RM) 5000 20000 35000 50000 Table 5 Table 6 Chargeable Income Base Tax Amount (RM) 0 tp Table 7 Object Name Employment salary, Rental, Other Donation, Monthly tax deduction, Insurance/takaful, EPF Zakat Fitrah 0 150 600 Parameter name tax No assessmentType submittionDate Tax Rate % 0 1 3 5 Argument Ali SG001212 Individual 20 March 2022
(c) By applying an inheritance concept and composition relationship, develop Java program for Taxpayer class. (d) Develop the Java program for Income class. (e) Develop the Java program for Exemption class. [6 Marks] (f) Based on the information in Table 7, create an object and complete the Java program for TaxReportingMain class by following the skeleton program in Figure 13. [13 Marks] (Notes: Underline words and square box are the output and input of the program respectively) <<interface>> EzHasil +INDIVIDUAL EXEMPTION: double- 5000.0 +calculate Totallncome(): double +calculate TotalExemption(): double +calculate Taxablelncome): double EFiling #submittionDate: String #assessment Type: String #getSubmittionDate(): String #name: String #tax No: String -income: Income -exemption: Exemption -taxRebate: double +taxToBePaid): double +getName(): String +getTaxNo(): String Taxpayer getincome): Income getExemption(): Exemption + setTaxRebate/rebate: double): void -donation:double -monthly tax deduction: double -insurance: double + TaxPayer( name: String, tax No: String, assessmentType: String, submittion Date: String) + calculate TotalExemption(): double + calculate Totallncome(): double +calculate Taxableincome): double + calculate Income TaxAmount(): double +amountOfTaxCharged(): double Exemption -epf: double +getDonation(): double getMonthly_tax deduction(): double getinsurance(): double getEp(): double + setDonation/donation: double):void setMonthly_tax deduction(monthly_tax deduction: double): void setinsurance(insurance: double):void + setipf(epf: double): void Figure 4 [21 Marks] Income [5 Marks] -employmentSalary: double -rental income: double -othersincome: double getEmployment Salary(): double +getRentalincome): double getOthersincome): double setEmployment Salary employmentSalary: double):void + setRental income rentallincome: double): void + setOthersincome othersincome: double): void TaxReportingMain mainLargs: String): void
**INCOME ** Employment Salary: RM36000 Rental Income: RM4800 Others Income: RM2200 **EXEMPTION** Donation: RM500 Monthly Tax Deduction: RM360 Takaful/Insurance: RM1200 EPF: RM1920 Zakat/Fitrah: RM1320 Figure 5 Total Income = Employment Salary + Rental + Other Income Figure 6 Total Exemption = donation+ Insurance + EPF Figure 7 Taxable Income = Total Income - (Total Exemption + Individual Exemption) Figure 8 Income Tax Amount =Base Tax + ((Taxable Income - Chargeable Income) * Tax Rate) Figure 9 Tax Charged Income Tax Amount - Tax Rebate Figure 10 = Tax To Be Paid = Tax Charged-Monthly Tax Deduction Figure 11
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply