In: Computer Science
import java.util.Scanner;
public class Main
{
   public static void main(String[] args) {
   // Scanner class for input
       Scanner sc = new
Scanner(System.in);
       System.out.println("Enter the
Monthy fees: ");
       //getting iinput for monthly
fees
       int monthly_fees =
sc.nextInt();
       System.out.println("Enter the
Minutes: ");
       //minutes
       int min = sc.nextInt();
       System.out.println("Enter the Rate:
");
       //rate
       double rate = sc.nextFloat();
       double bill=0;
       if(min<=1000){
       bill=monthly_fees;
       }else if(min<=2000){
       bill=((min - 1000)*rate ) +
monthly_fees;
       }else{
       bill = ((min - 1000)*rate * 1.5 ) +
monthly_fees;
       }
       System.out.println("The bill is
"+bill);
       System.out.println("Thank you for
using our program");
   }
}