First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ==> Close All Projects).Then create a new Java application called "IncomeTax" (without the quotation marks) that prompts a user for his or her marital status (single or married) and annual income (a double value), and then uses nested if statements to compute that person's tax, based on the simplified tax-rate table below.Output of your program should look close to the following and should be constructed using both String literals and variables for income, tax rate, and income tax.Based on a status of "single" and an annual income of $10000.00,the income tax is 15.00% of $10000.00, which equals $1500.00.Simplified Tax-Rate Table IncomeMarital Status - SingleMarital Status - Married<= $30,00015%12%> $30,00025%20%ThoughtsNote the requirement for this program to use nested if statements. This requirement is intended to help you build some logic with good formatting.Use comments to help readers understand your code.

Question
Asked Oct 11, 2019
12 views

First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ==> Close All Projects).

Then create a new Java application called "IncomeTax" (without the quotation marks) that prompts a user for his or her marital status (single or married) and annual income (a double value), and then uses nested if statements to compute that person's tax, based on the simplified tax-rate table below.

Output of your program should look close to the following and should be constructed using both String literals and variables for income, tax rate, and income tax.

Based on a status of "single" and an annual income of $10000.00,the income tax is 15.00% of $10000.00, which equals $1500.00.Simplified Tax-Rate Table

 Income

Marital Status - Single

Marital Status - Married

<= $30,000

15%

12%

> $30,000

25%

20%

Thoughts

  • Note the requirement for this program to use nested if statements. This requirement is intended to help you build some logic with good formatting.
  • Use comments to help readers understand your code.
check_circle

Expert Answer

Step 1
  • Create a JAVA file named IncomeTax.
  • Ask the user to enter income and marital status.
  • Based on marital status and income, tax rate is assigned and income tax is ca...

Want to see the full answer?

See Solution

Check out a sample Q&A here.

Want to see this answer and more?

Solutions are written by subject experts who are available 24/7. Questions are typically answered within 1 hour.*

See Solution
*Response times may vary by subject and question.
Tagged in

Engineering

Computer Science

Related Computer Science Q&A

Find answers to questions asked by student like you

Show more Q&A add
question_answer

Q: In python, write a program to find the prime factors of a number given by the user.

A: Program Instructions:Import the math module to use the sqrt() function.Take user input in a variable...

question_answer

Q: In C++ Create a function called ApplyTax. The tax rate should be a const set to 8.75%.  ApplyTax sho...

A: Program designThe program has 3 parts – main function, ApplyTax function and TotalCost functionthere...

question_answer

Q: CLASS OF 2019 Welcome MySAIL Oakland Un X Th Course: CSI-1420-43702.201940 X https://moodle.oakland....

A: Create a main method in the C program and read input from the user. And subtract the second time, wh...

question_answer

Q: What are the implications of crypto currency to the international banking system?

A: A cryptocurrency is a kind of digital asset which is designed  to work as medium of exchange that us...

question_answer

Q: My C++ program is supposed to check if a string input is in descending order. When I try to run it, ...

A: The given C++ code has few logical errors due to which it is not resulting the correct output. Revis...

question_answer

Q: Provide a situation that encompasses Integrity in the CIA triad

A: DefinitionIntegrity plays the foremost role in CIA triad. It is designed to secure the data from an ...

question_answer

Q: Are the following two clauses the same: constraint X primary key (Y, Z) and constraint X primarykey ...

A: Primary key:Primary key is a key which is used to uniquely identify a row in a table.A Primary key c...

question_answer

Q: How would you modify the dynamic programming algorithm for the coin collecting problem if some cells...

A: Coin collecting problemIn a n-m board, several coins are placed in such a way no more than one coin ...

question_answer

Q: Describe issues that might arise when using legal software

A: Legal Software come under copyright law; only single copy of the software provided by the publisher....