Write a program that computes the cost, MATLAB Programming

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.

Posted Date: 5/7/2013 1:30:03 AM | Location : United States

Related Discussions:- Write a program that computes the cost, Assignment Help, Ask Question on Write a program that computes the cost, Get Answer, Expert's Help, Write a program that computes the cost Discussions

Write discussion on Write a program that computes the cost
Your posts are moderated
Related Questions
Example: Load from File and Plot Data: As illustration, a file known as timetemp.dat stores two lines of data. The first line is the time of the day, and the next line is the

construct a matlab program to calculate and to plot the electron and hole concentration as a function of the Fermi-level in an energy gab of Si at a Given temperature and the carri

how to wriet program for batch reactor

First order differential equations: Euler's method Finally, we consider ?nding the numerical solution for a ?rst order differential equation given an initial value. We consider

Using numerical techniques, plot the intensity distribution for LP 01 and LP 11 modes. Vary the value of V (reduce it to 1.5) and plot several of the intensity plots (of LP 01 )

Expand a matrix: To expand a matrix, an individual element could not be added as that would mean there would no longer be the similar number of values in every row. Though,

i want to extract an image from its background in matlab..the image is a binary image

Obtaining the Partial Fraction Expansion of the Z-Transform expression and to find its Inverse Z-Transforms using MATLAB

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

Mathematical operation: For numerical operands, the use of such operators is clear-cut. For illustration, 3 >> 3 ans = 1 >> 9 ans = 0 Though, in the Wo