Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Product Costing Concepts And Applications

Authors: Ralph S. Polimeni

3rd Edition

0072390840, 978-0072390841

More Books

Students also viewed these Accounting questions

Question

Explain the need for and importance of co-ordination?

Answered: 1 week ago

Question

Explain the contribution of Peter F. Drucker to Management .

Answered: 1 week ago

Question

What is meant by organisational theory ?

Answered: 1 week ago

Question

What is meant by decentralisation of authority ?

Answered: 1 week ago

Question

Discuss the value of adult learning theory to HRD interventions

Answered: 1 week ago

Question

Conduct a task analysis for a job of your choosing

Answered: 1 week ago