Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

show the result. 2.5 (20 points) The cost of sending a package by an express delivery service is $15.00 for the first two pounds, and

image text in transcribed
show the result. 2.5 (20 points) 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 there of over two pounds. If the package weighs more than 50 pounds, a $15.00 excess weight surcharge is added to the cost. If the package weighs more than 70 pounds, a $30.00 excess weight surcharge is added to the cost. No package over 100 pounds will be accepted. Write a program in a script file that accepts the weight of a package in pounds and computes the cost of mailing the package. Be sure to handle the case of overweight packages. The program asks the user to enter the number of weight. The program then displays the cost. Save your program into a script file named "hw0205.m". Test your program on four cases for 1 pound, 45 pounds. 90 pounds and 110 pounds. Show your MATLAB code and the three results

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Oracle8I Building Efficient Databases

Authors: Jonathan Lewis

1st Edition

0201715848, 978-0201715842

More Books

Students also viewed these Databases questions

Question

6. Explain some strategies for dealing with conflict.

Answered: 1 week ago

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago