Question: Fix the code % FIX ME To Make It run correctly. Use the Programming Language ---- > MATLAB Assessments Tests Check if CalculateDelivery(65.4) returns 36
Fix the code % FIX ME
To Make It run correctly.
Use the Programming Language ---- > MATLAB

Assessments Tests
Check if CalculateDelivery(65.4) returns 36
Check if CalculateDelivery(50.3) returns 21

Luggage delivery Assign deliveryCost with the cost (in dollars) to deliver a piece of baggage weighing baggageWeight. The baggage delivery service charges twenty dollars for the first 50 pounds and one dolllar for each additional pound. The baggage delivery service calculates delivery charge by rounding to the next pound. Assume baggageWeight is always greater than 50 pounds Ex: If baggageWeight is 65.4 pounds, then the weight is rounded to 66 pounds and deliveryCost is 20(16 1) 36 dollars. Your Function Save CReset MATLAB Documentation function deliveryCost- CalculateDelivery (baggageweight) 2% baggageweight: Weight of baggage in pounds 4 5 6 7 end % Assign delive ryCost with the delivery a piece of baggage weighing baggageweight deliveryCost Code to call your function C Reset 1 CalculateDelivery (65.4)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
