subject

Java languagethe 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. import java. util. scanner; public class shippingcalculator { public static void main (string [] args) { scanner scnr = new scanner(system. in); int shipweightpounds; int shipcostcents = 0; final int flat_fee_cents = 75; int cents_per_pound = 25; shipweightpounds=10; shipcostcents = (shipweightpounds * cents_per_pound) + flat_fee_cents; system. out. println("weight(lb): " + shipweightpounds); 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); }}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
Lisa’s company, abc ltd., lost its biggest client and is now facing a financial crunch. most of her colleagues have resigned, but lisa decides to stay with the company and assist the management in overcoming the financial situation. which quality is lisa demonstrating? a. self-management b. cooperativeness c. responsibility d. loyalty
Answers: 2
question
Computers and Technology, 22.06.2019 19:00
In he example code, what does the title attribute create? a tool tip an element a source a markup
Answers: 1
question
Computers and Technology, 22.06.2019 19:00
How is the number 110 written when expanded out to place values in the base 2 (binary) number system? options: 2 x 4 + 3 x 2 + 4 x 1 1 x 2 + 1 x 2 + 0 x 2 1 x 100 + 1 x 10 + 0 x 1 1 x 4 + 1 x 2 + 0 x 1
Answers: 1
question
Computers and Technology, 23.06.2019 04:20
Which network media uses different regions of the electromagnetic spectrum to transmit signals through air? uses different regions of the electromagnetic spectrum to transmit signals through air.
Answers: 2
You know the right answer?
Java languagethe cost to ship a package is a flat fee of 75 cents plus 25 cents per pound.1. declare...
Questions
question
Social Studies, 20.09.2019 09:30
question
Mathematics, 20.09.2019 09:30
question
English, 20.09.2019 09:30
question
Mathematics, 20.09.2019 09:30
question
Mathematics, 20.09.2019 09:30
question
Mathematics, 20.09.2019 09:30
Questions on the website: 13722363