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, 23.06.2019 02:00
In the context of an internet connection, llc stands for leased line connection liability limited company local loop complex local loop carrier
Answers: 1
question
Computers and Technology, 23.06.2019 09:20
How to print: number is equal to: 1 and it is odd number number is equal to: 2 and it is even number number is equal to: 3 and it is odd number number is equal to: 4 and it is even number in the console using java using 1 if statement, 1 while loop, 1 else loop also using % to check odds and evens
Answers: 3
question
Computers and Technology, 23.06.2019 11:00
How should you specify box sizes on a web page if you want the boxes to vary according to the font size of the text they contain? a. in pixels b. in inches c. as percentages d. in em units
Answers: 2
question
Computers and Technology, 23.06.2019 11:30
Auser is given read permission to a file stored on an ntfs-formatted volume. the file is then copied to a folder on the same ntfs-formatted volume where the user has been given full control permission for that folder. when the user logs on to the computer holding the file and accesses its new location via a drive letter, what is the user's effective permission to the file? a. read b. full control c. no access d. modify e. none of the above
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
English, 29.04.2021 23:50
question
Social Studies, 29.04.2021 23:50
question
Mathematics, 29.04.2021 23:50
question
Mathematics, 29.04.2021 23:50
question
Mathematics, 29.04.2021 23:50
Questions on the website: 13722360