subject

Write a function (in MATLAB) for the following:
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:
function deliveryCost = CalculateDelivery(baggageWeight)
% baggageWeight: Weight of baggage in pounds
% Assign deliveryCost with the delivery a piece of baggage weighing baggageWeight
deliveryCost = 0;
end

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:10
Look at the far left lane in the picture. explain what the red car is doing and what it needs to do to travel safely.
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
Ou listened to a song on your computer. did you use hardware or software?
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
List 3 items that were on kens resume that should have been excluded
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
To move an excel worksheet tab, simply right-click on it drag and drop it double-click on it delete it
Answers: 1
You know the right answer?
Write a function (in MATLAB) for the following:
Assign deliveryCost with the cost (in dollars)...
Questions
question
Mathematics, 22.04.2020 18:05
question
Mathematics, 22.04.2020 18:05
Questions on the website: 13722361