Question: Link https://www.doughroller.net/taxes/federal-income-tax-brackets-deductions-and-exemption-limits/ Tax.java /* Programmer: Date: Project: Lab 2.4 Tax File Name: Tax.java Program Description: Determines the taxes a person owes */ import java.util.*; public

 Link https://www.doughroller.net/taxes/federal-income-tax-brackets-deductions-and-exemption-limits/ Tax.java /* Programmer: Date: Project: Lab 2.4 Tax File
Link https://www.doughroller.net/taxes/federal-income-tax-brackets-deductions-and-exemption-limits/
Tax.java
/* Programmer:
Date:
Project: Lab 2.4 Tax
File Name: Tax.java
Program Description: Determines the taxes a person owes
*/
import java.util.*;
public class Tax{
public static void main(String[] args){
// Variable to accept the user's input
Scanner keyboard = new Scanner(System.in);
// Enter your code here
}
}

Lab 2.4 Tax The 2018 tax tables and deductions are available here: mits Write a program that asks the user how they are filing their taxes (married joint, head of household, single, or married separate) and their annual income and then tells them how much they will owe in taxes (ignore any itemized deductions). Use the nextLine method of the Scanner class to determine how they are filing their taxes since it can be more than word. Make sure you do this before asking for their income. Complete the following steps to calculate how much the user will pay in taxes. 1. Ask them for their filing status. (String) 2. Ask them for their income. (double) 3. Subtract their standard deduction from their income. This can be found on the website listed above 4. Calculate the taxable income by subtracting their standard deduction from their income 5. Use their filing status and taxable income to determine how much they owe in taxes. 6. Tell the user how much they owe in taxes. Below are example outputs for your program. What is your filing status? Married joint What is your income? 100000 You owe $8739.0 in taxes. What is your filing status? Head of household is your income? 100500 You owe $12698.0 in taxes. What is your filing status? single What is your income? 40000 You owe $3169.59 in taxes. What is your filing status? Married What is You owe $21409.50 in taxes. separate your income? 125000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!