Table 2 Tax class information Data Member Data Type Remark Monthly salary double This data...

90.2K

Verified Solution

Question

Accounting

image

Table 2 Tax class information Data Member Data Type Remark Monthly salary double This data member stores the monthly salary entered by the user Base Tax double This data member stores the base tax value computed based on the annual salary. Annual salary double This data member stores the annual salary computed based on the monthly salary entered Percentage of double This data member stores the excess tax computed based excess on the annual salary. Lowest range double This data member stores the lowest range salary based on the computation. Payable tax double This data member stores the computed payable tax. Note: (1) Validation is required when accepting monthly salary (2) Student may add extra data members to the class. Tax Computation processing Student is required to create third programmer-defined class to compute the income tax (payable tax) by accepting the user information and salary from the user. The process of accepting the user information and salary computation needs to involve both the above- mentioned tables. (For example, creating object based on the classes or inheritance) The computation of the income tax (payable tax) needs to base on the information below. Table 3 Tax calculation information Annual Salary Range (RM) Base Tax (RM) Percentage of excess 0.00 - 14,999 0.00 15 15,0000 - 29,999 2,250 18 30,000 - 49,999 5,400 22 50,000 - 79,999 11,000 27 80,000 - 150,000 21,600 33 Page 3 of 8 Table 2 Tax class information Data Member Data Type Remark Monthly salary double This data member stores the monthly salary entered by the user Base Tax double This data member stores the base tax value computed based on the annual salary. Annual salary double This data member stores the annual salary computed based on the monthly salary entered Percentage of double This data member stores the excess tax computed based excess on the annual salary. Lowest range double This data member stores the lowest range salary based on the computation. Payable tax double This data member stores the computed payable tax. Note: (1) Validation is required when accepting monthly salary (2) Student may add extra data members to the class. Tax Computation processing Student is required to create third programmer-defined class to compute the income tax (payable tax) by accepting the user information and salary from the user. The process of accepting the user information and salary computation needs to involve both the above- mentioned tables. (For example, creating object based on the classes or inheritance) The computation of the income tax (payable tax) needs to base on the information below. Table 3 Tax calculation information Annual Salary Range (RM) Base Tax (RM) Percentage of excess 0.00 - 14,999 0.00 15 15,0000 - 29,999 2,250 18 30,000 - 49,999 5,400 22 50,000 - 79,999 11,000 27 80,000 - 150,000 21,600 33 Page 3 of 8

Answer & Explanation Solved by verified expert
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students