Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started