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.

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;

/* your solution goes here */

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 10:00
According to alisa miller foreign news bureaus
Answers: 3
question
Computers and Technology, 22.06.2019 11:00
When working with a team you should always do the following, except? question 3 options: be dependable and trustworthy be sensitive to others feelings do your fair share critique members of the group
Answers: 2
question
Computers and Technology, 22.06.2019 19:20
Terri needs to insert a cover page into her document. where should she go to access the commands to do so? o insert tab, objects group o insert tab, illustrations group o insert tab, pages group o insert tab, media group submit
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
How is the number 372 written when expanded out to place values in the base 8 (octal) number system? a. 2 x 4 + 3 x 2 + 4 x 1 b. 3 x 64 + 7 x 8 + 2 x 1 c. 3 x 8 + 7 x 7 + 2 x 6 d. 3 x 100 + 7 x 10 + 2 x 1
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 co...
Questions
question
Mathematics, 06.05.2020 20:04