For this Question: Maruti is a Bill manager in the Electricity department in his municipality. Being a newbie, he is not that good at calculation. So as a good friend of Maruti, calculate the bill amount for given electricity unit counts.

<b>Note:</b>Per unit electricity rate is given below.
For the first 50 units, Rs. 0.50/unit
For the next 100 units, Rs. 0.75/unit
For the next 100 units, Rs. 1.25/unit
For units above 250, Rs. 1.50/unit
An additional surcharge of 20% is added to the bill.

You are given an integer n (count of electricity units), then return the total amount Maruti has to pay.
Print answers up to 2 decimal places.An integer n (count of electricity units) is given as input.

<b>Constraints</b>
1 <b>&le;</b> n <b>&le;</b> 10<sup>5</sup>A single number that represents the total amount that Maruti has to pay.Sample Input:
100
Sample Output:
75.00
Explanation:

Bill Amount=0.5*50+0.75*50=25+37.5=62.5
Bill after 20% additional Charge=62.5+12.50=75.00, 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();
        double ans=0;
        ans+=0.5*Math.min(n,50);
        if(n>50){
            ans+=0.75*Math.min(n-50,100);
        }
        if(n>150){
            ans+=1.25*Math.min(n-150,100);
        }
        if(n>250)
        ans+=1.50*(n-250);
        //Additional Charge
        ans+=0.20*ans;
        System.out.printf("%.2f",ans);
        return;
    }
}

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