For this Question: Maruti is a software engineer at Newton School. He knows his basic salary but doesn't know the Gross salary he gets from the company after getting HRA(Home Rent Allowance) and DA(Dearness allowance) as it does not credit directly to his bank account.
As a friend of Maruti, tell him the Gross salary paid by Newton School to him.

<b>Note: The percentage of HRA and DA gave on basic salary is below. </b> 
Basic Salary <= 10000 : HRA = 20%, DA = 80%
Basic Salary <= 20000 : HRA = 25%, DA = 90%
Basic Salary > 20000 : HRA = 30%, DA = 95%

Given an integer n(Basic salary of Maruti). Return Gross salary paid to him.There is an integer n(Basic salary of maruti) is given as input.
<b>Constraint:</b>
1 <b>&le;</b> n <b>&le;</b> 10<sup>5</sup>Return Gross salary paid to Maruti in Integer.Sample Input:
10000
Sample Output:
20000
Explanation:
HRA:2000
DA:8000
Total Gross salary=10000+2000+8000=20000, I have written this Solution Code: import java.util.*;

public class Main
{
    
    public static void main(String[] args)
    {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int ans=0;
        if(n<=10000){
            ans=2*n;
        }
        else if(n>10000&&n<=20000){
            ans=(int)(2.15*n);
        }
        else ans=(int)(2.25*n);
        System.out.println(ans);
        return;
    }
}

, In this Programming Language: Java, Now tell me if this Code is compilable or not?