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
From A to B the inlet valve is open and the steam pressure increases linearly from 0.1000 MPa absolute to 15.00 MPa absolute, 1000°C. The inlet valve closes and from B to C the

Adaptive filters can also be used in other applications. Speech recognition, for example, is performed in a non-stationary environment, and therefore may require adaptive filtering

Solve for unknowns 'x' and 'y' from Equations (1) and (2) using MATLAB. (However, if MATLAB is not the appropriate software to solve these two simultaneous equations, please sugges

Design and implement Binary digital modulation for a specific input signal frequency, sampling frequency and signal level for binary frequency shift keying (BFSK) by applying MATLA

Code and decode a 32 bit long data for a specific user in CDMA if there is only 1 user and no noise.

User-Defined Functions which return a Single Value: We have seen the use of many functions in the MATLAB. We have used many built-in functions like fix, sin, abs, double, and

Error in variables statements: Error: The expression in the left of equals sign is not a valid target for an assignment. >>  By placing a semicolon at the end of the sta

The natural frequencies of a fixed-fixed uniform shaft made of homogeneous material undergoing longitudinal vibration is given by rad/s, where L is the length of the bar, G is th

How to Open Simpower: 1. Open MATLAB 2. In the "Command Window" write ' simulink ' and press Enter or click on the Simulink icon. 3. Simulink Library Browser w