Question: JAVA PROGRAMMING URGEEEEENT URGENT PLS HELP QUICK Ver A shipping company wants to calculate the cost (in AED) of shipping based on: the weight of

JAVA PROGRAMMING URGEEEEENT URGENT PLS HELP QUICK
JAVA PROGRAMMING URGEEEEENT URGENT PLS HELP QUICK Ver A shipping company wants

Ver A shipping company wants to calculate the cost (in AED) of shipping based on: the weight of the package (in KG), the type of the package, and the delivery cost. Cost based on the weight (w) is: Cost based on the type t) is: (12 *W c(w) = 50 W + 25 (70 W + 100 ;0 30 40 ;t="document" c(t) = 240 ; t = "breakable" 120 ; t = others Cost based on the delivery (d) is: c(d) = (30% of c(t) ;d='Y' 10 ;d = others Note: The deivery cost is depend on the type cost. Type of the package has to be converted to lowercase before doing the comparison. The user should provide the package weight (w), type (t), and delivery option (d). Then the program calculates the cost of shipping which is equal to the weight charge [c(w)], plus the type charge [c(t), plus delivery charge [c(d)). Then the program will output to user the cost details and total shipping cost. Sample 1 Input/Output: Enter the package weight: 10 Enter the package volume type: Breakable Do you want delivery (Y): Weight cost = 525.0 AED Type cost-240.0 AED Delivery cost-72.0 AED Total shipping cost-837.0 AED

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!