Question: Problem 5 : Box Shipping Write a program to calculate the total shipping cost for a package based on its weight and shipping distance. The
Problem : Box Shipping
Write a program to calculate the total shipping cost for a package based on its weight and shipping distance. The program prompts the user to input the weight of the package in kilograms weight must be at least KG and the shipping distance in kilometers distance must be positive The program then calculates the shipping cost based on the following criteria:
For Weight small:
If distance : Cost AED per kg
If distance : Cost AED per kg
For Weight medium:
If distance : Cost AED per kg
If distance : Cost AED per kg
For Weight large:
If distance : Cost AED per kg
If distance km : Cost AED per kg
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
