EB Bill Generation

/*
Develop a Java application to generate Electricity bill. Create a class with the following members: Consumer no., consumer name, previous month reading, current month reading, type of EB connection(i.e domestic or commercial). Compute the bill amount using the following tariff.
If the type of the EB connection is domestic, calculate the amount to be paid as follows:
     First 100 units – Rs. 1 per unit
     101-200 units – Rs. 2.50 per unit
     201 -500 units – Rs. 4 per unit
     > 501 units – Rs. 6 per unit
If the type of the EB connection is commercial, calculate the amount to be paid as follows:
     First 100 units – Rs. 2 per unit
     101-200 units – Rs. 4.50 per unit
     201 -500 units – Rs. 6 per unit
     > 501 units – Rs. 7 per unit
*/
import java.io.*;
import java.util.*;
class Consumer
{
     int c_no;
     String c_name;
     int prev, cur;
     String conc_type;
     public void fnRead()
     {
          Scanner s = new Scanner(System.in);
          System.out.println(“Enter values:”);
          System.out.print(“Consumer Number : “);
          c_no = Integer.parseInt(s.nextLine().trim());
          System.out.print(“Consumer Name : “);
          c_name = s.nextLine().trim();
          System.out.print(“Previous month reading : “);
          prev = Integer.parseInt(s.nextLine().trim());
          System.out.print(“Current month reading : “);
          cur = Integer.parseInt(s.nextLine().trim());
          System.out.print(“Connection type : “);
          conc_type = s.nextLine().trim();
     }
     public void fnCalc()
     {
          int units = cur – prev;
          double bill;
          if(conc_type.equalsIgnoreCase(“domestic”))
          {
              if(units <= 100)
                   bill = (double)units * 1;
              else if(units <= 200)
                   bill = (double)units * 2.50;
              else if(units <= 500)
                   bill = (double)units * 4;
              else
                   bill = (double)units * 6;
          }
          else
          {
              if(units <= 100)
                   bill = (double)units * 2;
              else if(units <= 200)
                   bill = (double)units * 4.50;
              else if(units <= 500)
                   bill = (double)units * 6;
              else
                   bill = (double)units * 7;
          }
          System.out.println(“EB BILL”);
          System.out.println(“Consumer Number : “+c_no);
          System.out.println(“Consumer Name : “+c_name);
          System.out.println(“Previous month reading : “+prev);
          System.out.println(“Current month reading : “+cur);
          System.out.println(“Connection type : “+conc_type);
          System.out.println(“Number of Units : “+units);
          System.out.println(“Bill : Rs. “+bill);
     }
}
public class EB_bill
{
     public static void main(String as[])
     {
          Consumer c1 = new Consumer();
          c1.fnRead();
          c1.fnCalc();
     }
}