Answers

2015-02-17T22:04:30+05:30
Import java.util.*
class Parcel
 {  BufferedReader br= new BufferedReader ( new InputStreamReader (System.in));
   public void calc()throws IOException
  {   double bill,x;
      System.out.println("Enter the Weight of the parcel");
     x=Double.parseDouble(br.readline());
      if (x==1.0)
     bill=30
  else 
     bill=30+((x-1)/2)*10;
System.out.println("bill amount:"bill);
}
}




  
1 3 1