Math, asked by ashokapr8877, 9 months ago

Write a java program to input licence number total monthly income of a shopkeeper find the annual income 20% of the annual income as discount find the taxable income excluding the discount and then 1 percentage education tax on the taxable income then find the calculate the total tax to be paid including education train the licence the annual income total tax write the java program

Answers

Answered by shriyakodesia2005
7

Answer:

Income tax brackets for single-filers

up to $9075 10%

$9076 - $36900 15%

$36901 - $89350 25%

$89351 - $186350 28%

$186351 - $405100 33%

import java.util.Scanner;

public class IncomeTax {

public static void main(String[] args) {

Scanner input = new Scanner(System.in);

// Prompt the user to enter taxable income

System.out.print("Enter the amount of taxable income for the year 2014: ");

double income = input.nextDouble();

// Compute tax

double tax = 0;

if (income <= 9075)

tax = income * 0.10;

else if (income <= 9076)

tax = 9075 * 0.10 + (income - 36900) * 0.15;

else if (income <= 36901)

tax = 9075 * 0.10 + (9076 - 36900) * 0.15 + (income - 89350) * 0.25;

else if (income <= 89351)

tax = 9075 * 0.10 + (9076 - 36900) * 0.15 + (36901 - 89350) * 0.25 + (income - 186350) + 0.28;

else if (income <= 186351)

tax = 9075 * 0.10 + (9076 - 36900) * 0.15 + (36901 - 89350) * 0.25 + (89351 - 186350) + 0.28 + (income - 405100) + 0.33;

if (income <= 9075)

System.out.println("You have entered the 10% bracket.");

else if (income <= 9076)

System.out.println("You have entered the 15% bracket.");

else if (income <= 36901)

System.out.println("You have entered the 25% bracket.");

else if (income <= 89351)

System.out.println("You have entered the 28% bracket.");

else if (income <= 186351)

hope this helps you

please mark my answer as Brainliest answer

Thank you ❤️

Follow me

Similar questions