Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Have to use JAVA PROGRAM. Changes in the economy have determined that for the EZ shipping company, a surcharge will be assessed on all packages
Have to use JAVA PROGRAM.
Changes in the economy have determined that for the EZ 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. The regular charges for shipping are calculated as follows: For all weights five pounds and under, the shipping cost is $12.00. For weights over five pounds, the charge is calculated as follows: If length* width* height + weight is: a. greater than 5 and less than or equal to 15, the shipping cost is 14.00 b. greater than 15 and less than or equal to 34, the shipping cost is 17.00 c. greater than 34 and less than or equal to 45, the shipping cost is 21.00 d. greater than 45 and less than or equal to 60, the shipping cost is 33.00 e. greater than 60, the shipping cost is 105.00 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 5% 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 14% on the shipping cost. Finally, if the zip code is even, then there is an additional surcharge of 2% 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: The zip code and dimensions of the package The shipping cost The surcharge The total shipping cost (shipping cost plus surcharge(s) This program should be well documented (comments for the programmer and user both internally and externally. For this program, you will need to use Dialog and Message Boxes, and continue to use them for all programs from this point on
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started