I am writing a program that finds the taxes based on a person's income. So far the problem I am running into is some numbers that come out don't round up two decimal places and keep on going and I don't know how to get the max out of all the numbers.

Here is what I have to do:

Not over $750 1% of income

$750-$2500 $7.5 plus 2% of amount over $750

$2500-$5000 $82.5 plus 4% of amount over $2500

$5000-$8000 $142.50 plus 5% of amount over $5000

Over $8000 $230.00 plus%6 of amount over $8000

Write a program named IncomeTax.java. 

1. generate random number of people in the range of (1-15);
2. ask the user to enter the amount of taxable income for each person, and then

displays the tax due; 

3. display the max value of taxes on the screen.

Here is my code:

```
Scanner console=new Scanner(System.in);

    double tax=0;
    double income=0;
    Random rand=new Random();
    int randomNumber=rand.nextInt(14)+1;
    for(int i=1;i<=randomNumber;i++){
        System.out.println("Person: "+i);
        System.out.println("Please enter income: ");
     double n=console.nextDouble();

        if(n<750){
             n=n*.01;
             System.out.println("Tax due: $"+n);
        }else if(n<2500){
        n=0+7.5+(n*.02);
        System.out.println("Tax due: $"+n);
    }else if(n<5000){
        n=0+82.5+(n*.04);
        System.out.println("Tax due: $"+n);
    }else if(n<8000){
        n=0+142.50+(n*.05);
        System.out.println("Tax due: $"+n);
    }else if(n>8000){
        n=0+230+(n*.06);
        System.out.println("Tax due: $"+n);

    }

```