Must be in pseudocode.

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

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.

1. Display message: "Enter the taxable income:"

2. Read the taxable income as userInput
3. If userInput is less than 0, display error message: "Taxable income cannot be negative."
4. If userInput is between 0 and 49,999 (inclusive):
- taxDue = 0 + 5% of (userInput - 0)
- Display taxDue
5. If userInput is between 50,000 and 99,999 (inclusive):
- taxDue = 2,500 + 7% of (userInput - 50,000)
- Display taxDue
6. If userInput is greater than or equal to 100,000:
- taxDue = 6,000 + 9% of (userInput - 100,000)
- Display taxDue

Here is the pseudocode to compute the income tax due on taxable income:

1. Read input for taxable income from the user.
2. Check if the taxable income is a negative number. If it is, show an error message and go back to step 1.
3. Calculate the tax due based on the taxable income using the given table:
- If taxable income is less than or equal to $49,999, tax due is 5% of the amount over $0.
- If taxable income is between $50,000 and $99,999, tax due is $2,500 plus 7% of the amount over $50,000.
- If taxable income is $100,000 or more, tax due is $6,000 plus 9% of the amount over $100,000.
4. Display the tax due.

Pseudocode:

```
1. Read taxableIncome from the user.
2. If taxableIncome < 0, then
Display "ERROR: Invalid input. Taxable income cannot be negative."
Go to step 1.
3. If taxableIncome <= 49999, then
taxDue = 0 + (taxableIncome - 0) * 0.05
Else if taxableIncome >= 50000 and taxableIncome <= 99999, then
taxDue = 2500 + (taxableIncome - 50000) * 0.07
Else if taxableIncome >= 100000, then
taxDue = 6000 + (taxableIncome - 100000) * 0.09
4. Display "Tax due:", taxDue
```

Note: This pseudocode assumes the tax calculations are inclusive of the specified ranges (e.g., $0-$49,999 includes $0 and $49,999). If the ranges are exclusive, you would need to adjust the conditions accordingly.