//A shipping fee calculator that determines the shipping charge //based on weight input as whole pounds import java.io.*; class ShippingCalculator { public static void main (String args[]) throws IOException { BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in)); String weight; int num_weight; System.out.println("How much does your package weigh, in whole pounds?"); weight=stdin.readLine(); num_weight= Integer.parseInt(weight); if (num_weight >=10) System.out.println("Sorry, we don't ship packages that heavy"); if (num_weight >=6 && num_weight<10) System.out.println("Your shipping fee is $7.00"); if (num_weight >=3 && num_weight<6) System.out.println("Your shipping fee is $4.00"); if (num_weight >0 && num_weight<3) System.out.println("Your shipping fee is $2.00"); }//main }//class