Course Solutions Uncategorized (Solved) : Challenge 281 Using Constants Expressions Activity Cost Ship Package Flat Fee 75 Cents Plu Q34296850 . . . .

(Solved) : Challenge 281 Using Constants Expressions Activity Cost Ship Package Flat Fee 75 Cents Plu Q34296850 . . . .

 

CHALLENGE 2.8.1: Using constants in expressions ACTIVITY 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 ] args) Scanner scnr new Scanner(System.in); int shiphieightPounds; int shipCostCents 0 final int FLAT_FEE_CENTS75; Your solution 

<div class=

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post