Question: The cost to ship a package is a flat fee of 75 cents plus 25 cents per pound. 1. Declare a constant named CENTS PER

 The cost to ship a package is a flat fee of

The cost to ship a package is a flat fee of 75 cents plus 25 cents per pound. 1. Declare a constant named CENTS PER POUND and initialize with 25 2. Get the shipping weight from user input storing the weight into shipWeightPounds. 3, Using FLAT FEE CENTS and CENTS PER POUND constants, assign shipCostCents with the cost of shipping a package weighing shipWeightPounds 1 import java.util.Scanner; 3 public class ShippingCalculator 4 public static void main (String [1 args) t Scanner scnr new Scanner (System.in) int shipweightPounds; int shipCostCents 0; final int FLAT-FEE-CENTS-75; 10 Your solution goes here/ 12 13 14 15 16 ) 17 System.out.printin("ieight (b)shipheightpounds)i System.out.printin("Flat fee(cents):FLAT FEE CENTS); System.out.printin("Cents per pound: CENTS PER POUND); System.out.printin( Shipping cost(cents)shipCostCents)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!