Write a program that computes the cost, MATLAB Programming

Assignment Help:

The cost of sending a package by an express delivery service is $15 for the first two pounds, and $4.25 for each pound over two pounds.

Write a program that computes the cost of mailing the packages.  Your program must use a function to calculate the cost.  Use the test data:   1.5   16     103     lbs

The data should be read by the main program from a text file. The data is passed to the function.

               The results and any other output should be printed by the main program.

 Sample output is:

                              your name

                              Project 8                           problem 1

                   Package weight = 1.5  lbs           Shipping cost = $ 15.00

                 Student turns in an output, and two scripts.


Related Discussions:- Write a program that computes the cost

Illustration of script documentation, Illustration of script Documentation:...

Illustration of script Documentation: For illustration, the script to compute the area of a circle could be modified to have comments: The first comment at the startin

Solving 1st order differential equations, Hi, I need help with solving five...

Hi, I need help with solving five-1st order ODE which are coupled. I need to plot these as well. Could I please get a quote. Thanks

Strings, Strings: The MATLAB also handles strings that are a sequence ...

Strings: The MATLAB also handles strings that are a sequence of characters in single quotes. For illustration, using the double function on a string will represent the equival

Determine the ball temperature , In the manufacturing of ball bearings, the...

In the manufacturing of ball bearings, the components, such as the ball, are hardened through a process of heating and then rapid cooling or "quenching" by submersion in an oil or

Write a program to calculate and plot, This problem is intended to demonstr...

This problem is intended to demonstrate some problems that can arise from the finite precision of numerical calculations performed with computers.  We will do this by approximating

Introduction to matlab, Introduction to Matlab: The MATLAB is a graphi...

Introduction to Matlab: The MATLAB is a graphical and mathematical software package; it has graphical, numerical and programming capabilities. It has built-in functions to do

Solve the system of linear equations - matlab, Problem 1.  Use Matlab to so...

Problem 1.  Use Matlab to solve the following system of linear equations: 2x + y + 3z = 1 2x + 6y + 8z = 3 6x + 8y + 18z = 5 Capture Matlab code and the result in a text fi

Illustrations of if statement, Illustrations of if statement: illustra...

Illustrations of if statement: illustrations of running this script: >> sqrtifexamp Please enter a number: -4.2 The sqrt of 4.2 is 2.0 >> sqrtifexamp Please ent

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd