Free help with homework

Why join Brainly?

  • ask questions about your assignment
  • get answers with explanations
  • find similar questions

Write a java program to calculate charge for sending parcel.

For 1st kg - Rs 30
Thereafter for every 500 gm or its fraction - Rs 10


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");
      if (x==1.0)
System.out.println("bill amount:"bill);

1 3 1
The Brain
  • The Brain
  • Helper
Not sure about the answer?
Learn more with Brainly!
Having trouble with your homework?
Get free help!
  • 80% of questions are answered in under 10 minutes
  • Answers come with explanations, so that you can learn
  • Answer quality is ensured by our experts