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 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Cloud computing service providers manage different computing resources based on the services they offer. which resources do iaas and paas providers not manage? iaas providers do not manage the for the client, whereas paas providers usually do not manage the for their clients. iaas- storage server operating system network paas- applications interafce storage vertualiation
Answers: 2
question
Computers and Technology, 23.06.2019 07:50
Most shops require the technician to enter a starting and ending time on the repair order to track the actual time the vehicle was in the shop and closed out by the office. this time is referred to as _ time ? a. comeback b. ro c. cycle d. lead
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
The more powerful, 60 volt cables and the main power shut-off on an hev are both colored orange.
Answers: 1
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
History, 05.11.2019 11:31
question
Social Studies, 05.11.2019 11:31
question
Mathematics, 05.11.2019 11:31
Questions on the website: 13722367