Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Amazing Delivery Company delivers packages based on the package weight. Write the selection statement necessary to calculate and determine the value of totalShippingCharges, when

The Amazing Delivery Company delivers packages based on the package weight. Write the selection statement necessary to calculate and determine the value of totalShippingCharges, when provided the weightLbs of the package in pounds (as a positive number) from the user. Be sure to test for valid input as well. Use these given variable names and the following rate table in your calculations:
Weight of package in lbs Rate/cost per package
Less than 2.5 $2.50
2.5 to 4.99 $3.50
5.0 to 14.99 $10.75
15.0 to 20.0 $15.75
Over 20.0 Not able to ship

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions