subject

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 goes here / final int CENTS_PER_POUND 25; 12 13 14 shipCostCents FLAT_FEE_CENTS (CENTS_PER_POUND shipheightPounds); System. out. println("Weight(1b): "shipieightPounds) System. out. println("Flat fee(cents): "FLAT_FEE_CENTS); System. out. println("Cents per pound: " CENTS_PER_POUND) System. out. println("Shipping cost(cents): shipCostCents); 16 17 18 Run Failed to compile ShippingCalculator. java 12: error: variable shipWeightPounds might not have been initialized shipCostCents FLAT-FEE-CENTS (CENTS-PER-POUND shipWeightPounds) ; + * = 1 error

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
Today is the anniversary of me being on yet, i don't need it anymore! here's a picture of my dog wearing a bowtie! my question is, how do i delete my account?
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
question
Computers and Technology, 22.06.2019 22:30
Jason needs to learn a new web tool. he went through his books to understand more about it. now he wants hands-on experience with using that tool. what would him? jason can use websites where workspace is provided to test the results of your code.
Answers: 2
You know the right answer?
The cost to ship a package is a flat fee of 75 cents plus 25 cents per pound 1. Declare a constant n...
Questions
Questions on the website: 13722367