compute the income tax due on taxable income entered by the user, given the data as shown in the following table. Be sure to include error checking to make sure the user does not enter a negative number assume all entries are integer values

Taxable Income Tax Due
From To
$0 $49,999 $0+5% of amount over $0
$50,000 $99,999 $2,500+7% of amount over $50,000
$100,000 . . .  $6,000+9% of amount over $100,000

no it is pseudo code on word

Here is your pseudo code

income = 0
loop {
print "Income: "
read income
if income <= 0 exit loop
tax = (income > 100000) ? (6000+0.09*income-100000)
: (income >= 50000) ? (2500+0.07*(income-50000)
: (0.05*income)
<do what you want with the data>
}
assumes done when invalid value is entered. Otherwise, figure out an end flag and just skip invalid values.

i meant are you learning java??

not really because we are not using java or raptor just learning how to make these and put them on word

thank you can this work with main mod and the if and if else set up

To compute the income tax due on taxable income entered by the user, you would need to follow the given tax brackets and rates. Here's how you can do it:

1. Prompt the user to enter the taxable income as an integer value.
2. Check if the entered taxable income is a positive number. If it is negative, display an error message and prompt the user again to enter a valid positive integer.
3. Use conditional statements to determine which tax bracket the entered income falls into and calculate the tax due accordingly.
- If the income is between $0 and $49,999, the tax due is calculated as $0 plus 5% of the amount over $0.
- Tax Due = $0 + 5% * (Taxable Income - $0)
- If the income is between $50,000 and $99,999, the tax due is calculated as $2,500 plus 7% of the amount over $50,000.
- Tax Due = $2,500 + 7% * (Taxable Income - $50,000)
- If the income is $100,000 or above, the tax due is calculated as $6,000 plus 9% of the amount over $100,000.
- Tax Due = $6,000 + 9% * (Taxable Income - $100,000)
4. Display the computed tax due to the user.

Here's an example implementation in Python:

```python
def compute_income_tax():
taxable_income = int(input("Enter taxable income: "))

while taxable_income < 0:
print("Invalid input! Please enter a positive integer for taxable income.")
taxable_income = int(input("Enter taxable income: "))

if taxable_income <= 49999:
tax_due = round(0.05 * taxable_income, 2)
elif taxable_income <= 99999:
tax_due = round(2500 + 0.07 * (taxable_income - 50000), 2)
else:
tax_due = round(6000 + 0.09 * (taxable_income - 100000), 2)

print("Tax due: $", tax_due)

compute_income_tax()
```

Remember to adjust the syntax accordingly if you are using a different programming language.

This approach ensures that the taxable income is checked for validity and then calculates the tax due based on the provided tax brackets and rates.

is this java??