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, 24.06.2019 01:30
Write a program that asks the user to enter the name of an input file. if the file does not exist, the program should prompt the user to enter the file name again. if the user types quit in any uppercase/lowercase combinations, then the program should exit without any further output.
Answers: 3
question
Computers and Technology, 24.06.2019 10:30
You're programming an infinite loop. what must you include in your code to prevent crashes? in roblox
Answers: 2
question
Computers and Technology, 24.06.2019 10:30
This device directs network traffic. bridge hub nic repeater router switch
Answers: 3
question
Computers and Technology, 24.06.2019 10:30
Which of the following types of software is most applicable to the promotion of new products through advertising? a.databases b. spreadsheets c. web design programs d. word processing tools
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
question
Business, 29.06.2019 06:30
question
History, 29.06.2019 06:30
question
Mathematics, 29.06.2019 06:30
Questions on the website: 13722362