Problem Statement 4

Write a program, which accepts the gross pay and produces the amount of tax owed. For a gross pay of 100000 or less, the tax is 0%; for over 100000 and 300000 or less, the tax rate is 15%; and for any pay over 300000, the tax rate is 28%. Calculate tax pay and return the result to the main method. Print the result in the main method.

SAMPLE INPUT

Enter gross pay: 125000

SAMPLE OUTPUT

Tax owed: 18750

Sample Program:

Sample Output:

Enter the gross pay:
125000
Tax Owed:18750

Any queries leave a comment please and thanks for reading this post.

Leave a Reply

Your email address will not be published. Required fields are marked *