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 03:00
Data is processed, stored, and transmitted as a series of 1s and 0s. each 1 or 0 is called a(n) . a series of eight 0s and 1s, called a(n) , represents one character—a letter, number, or punctuation mark. data becomes when it is presented in a format that people can understand and use. digital signals are represented by two different , such as +5 volts and +.2 volts. digital data can also take the form of light and dark spots etched onto the surface of a cd or the positive and negative orientation of particles on the surface of a hard disk. data consists of numbers that might be used in arithmetic operations. it can be represented digitally using the number system. data is composed of letters, symbols, and numerals that are not used in arithmetic operations. computers represent this type of data using , ebcdic, unicode, or utf-8. data is quantified using terms such as or kibibyte (1024 bytes), and prefixes such as or mebi (1,048,576), and giga or (1,073,741,824). to reduce file size and transmission times, digital data can be compressed. compression provides the means to compress data and reconstitute it into its original state. compression throws away some of the original data during the compression process. compressed files usually have at the end of the file name and are represented with special icons. these files have to be or unzipped before you can view the data they contain.
Answers: 1
question
Computers and Technology, 22.06.2019 11:30
What do character formats do for your document's message? a.set the tone b.provide organization c.provide clarity d.set how texts align with documents
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
What is the power dissipated by a resistor with a current of 0.02 a and a resistance of 1,000 ? a. 200 w b. 20 w c. 0.4 w d. 4 w
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
How do you write an argumentative essay about the importance of free enterprise ?
Answers: 1
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
Mathematics, 02.03.2020 20:47
question
Mathematics, 02.03.2020 20:48
question
Mathematics, 02.03.2020 20:48
question
Mathematics, 02.03.2020 20:49
Questions on the website: 13722363