Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Fed-Ups shipping company, a surcharge will be assessed on all packages that meet certain criteria. The surcharge is a function of the characteristics of the

Fed-Ups shipping company, a surcharge will be assessed on all packages that meet certain criteria. The surcharge is a function of the characteristics of the package and the zip code to which it is sent.

1. The regular charges for shipping are calculated as follows: a. For all weights 6 and under, the shipping cost is $14.00. b. For all weights over five pounds, the charge is calculated as follows:

If length * width * height is:

  • greater than 6 and less than or equal to 15, the shipping cost is 14.00
  • greater than 15 and less than or equal to 30, the shipping cost is 16.00
  • greater than 30 and less than or equal to 45, the shipping cost is 18.00
  • greater than 45 and less than or equal to 60, the shipping cost is 20.00
  • greater than 60, the shipping cost is 26.00

2. The additional charges are calculated as follows:

  • If the first digit of the zip code is a "4" then there is an additional surcharge of 7% on the shipping cost.
  • If the first digit of the zip code is a "6" then there is an additional surcharge of 9% on the shipping cost.
  • For all other zip codes there is an additional surcharge of 11% on the shipping cost.

3. Finally:

  • if the zip code is even, then there is an additional surcharge of 3% of the shipping cost.

Write a program that allows the user to input (in this order) the zip code, weight, length, width and height of the package then prints out the following:

  1. The zip code and dimensions of the package
  2. The shipping cost
  3. The surcharge
  4. The total shipping cost (shipping cost plus surcharge(s))

For this program must need to use Dialog AND MESSAGE BOXES

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

More Books

Students also viewed these Databases questions

Question

Question What is a secular trust?

Answered: 1 week ago