Write a program that asks the user for information and then


Write a program that asks the user for information and then computes the cost to ship a package based on the input.

The program first asks the user for a shipping address.

It then asks the user for a delivery type: parcel or overnight.

Then the user is prompted for the dimensions of the package: length, width, height.

The program then asks for the weight of the package.

Based on this information, compute the cost to ship the package based on the following tables:

Volume Parcel Overnight

---------------------------------

>4 cuft Not accepted

>3 cuft $19.99 $59.99

>2 cuft $9.99 $29.99

>1 cuft $6.99 $19.99

>0 cuft $5.99 $15.99

Weight Additional Charge

-----------------------------

>10 pounds Not accepted

>5 pounds $8.49

>2 poinds $1.99

>0 pounds $0.00

Add 6% sales tax.

Display the Shipping address, the box dimensions, volume, and weight ( to 2 decimal places ), type of shipment selected (parcel/overnight), and finally the cost, sales tax, and total (cost + sales tax). All dollar amouts must be formatted correctly, i.e. $4.50 not 4.5.

Input validation: Do not accept values <= 0 for any input.

Request for Solution File

Ask an Expert for Answer!!
Other Subject: Write a program that asks the user for information and then
Reference No:- TGS0621922

Expected delivery within 24 Hours