subject

A shipping company uses the following function to calculate the cost in dollars of shipping based on the weight of the package (in pounds): Weight Cost Greater than 0 but less than or equal to 1 pound $3.50 Greater than 1 but less than or equal to 3 pounds $5.50 Greater than 3 but less than or equal to 10 pounds $8.50 Greater than 10 but less than or equal to 20 pounds $10.50 Write a program that prompts the user to enter the weight of the package and displays the shipping cost. If the weight is negative or zero, display a message "Invalid input". If the weight is greater than 20 pounds, display a message "The package can not be shipped". Test your program with the following inputs: -10, 0, 0.5, 1, 7.25, 20, 21

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 13:50
Implement the dining philosophers problem (described on pages 167-170 in the textbook (chapter 2.5. create a graphical user interface - showing which philosopher is eating, and which is waiting/thinking at any given time. show the forks. use java programming language for this project.
Answers: 2
question
Computers and Technology, 22.06.2019 04:00
Which spereadsheet type will determine how well a bussiness has done over the past year
Answers: 1
question
Computers and Technology, 22.06.2019 04:30
Kyle, a receptionist for a building supply company, recently won an award for saving his company money on their phone system. after being presented with kyle's research, the company changed the way in which it made long-distance phone calls and cut their expenses in this area by 75 percent. the new system the kyle's company most likely adopted was wired communications switching stations voip hdtv
Answers: 3
question
Computers and Technology, 22.06.2019 10:00
Which is a false statement considering copyright law? a. when people upload something to the internet they automatically receive a copyright for the work b. the work does not have to contain a copyright notice to be considered having a copyright c. copyright is legal term describing rights given to the creators for literary and artistic works d. personal pictures are always covered by copyrights
Answers: 1
You know the right answer?
A shipping company uses the following function to calculate the cost in dollars of shipping based on...
Questions
question
Mathematics, 25.12.2020 02:00
question
Mathematics, 25.12.2020 02:00
question
History, 25.12.2020 02:00
question
Mathematics, 25.12.2020 02:00
question
French, 25.12.2020 02:10
Questions on the website: 13722367