Question: MatLab code. Thank you You and your partner are programming software for a delivery company. The employee inputs the weight of the package and the
MatLab code. Thank you
You and your partner are programming software for a delivery company. The employee inputs the weight of the package and the distance to be delivered. The cost of sending a package by an express delivery service is $15.00 for the first two pounds, and $5.00 for each pound or fraction thereof over two pounds. If the package weighs more than 70 pounds, a $15.00 excess weight surcharge is added to the cost. No package over 100 pounds will be accepted. Additionally, the cost of delivery is $0.15 per mile for the first 50 miles, and $0.05 per mile thereafter. Write a program that accepts the weight of a package in pounds and distance to delivery in miles, and computes the cost of mailing the package. Be sure to handle the case of overweight packages
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
