Assignment title: Information
Write a MATLAB script that calculates the cost of shipping a package according to the following price schedule. Type of service Weight 0 – 0.5 lb 0.5 – 5 lb More than 5 lb Ground (5 – 7 Days) $0.70 + $0.06/oz $1.18 + $0.42 for every additional 0.5 lb (or fraction) $4.96 + $0.72 for every additional 0.5 lb (or fraction) Express (3 – 4 Days) $2.40 + $0.25/oz $4.40 + $1.20 for every additional 0.5 lb (or fraction) $15.20 + $1.80 for every additional 0.5 lb (or fraction) Overnight (One Day) $12.20 + $0.80/oz $18.60 + $4.80 for every additional 0.5 lb (or fraction) $61.80 + $6.40 for every additional 0.5 lb (or fraction) The program asks the user to enter the type of service (Ground, Express, or Overnight) and the weight of the package (two number. the first number for pounds and the second number for ounces). The program then displays the cost for the shipment. Run the program for continuous for three times to calculate following cases: (a) Ground 3 lb 8 oz (b) Express 0 lb 6 oz (c) Overnight 6 lb 11 oz Given that: 1 lb = 16 oz