The altitude, h, as a
where h is in units of feet and the pressure p in units of millibars (mb). Write a MATLAB program in a script file that calculates the h for a given p. For input (he program asks the user to enter the pressure in units of millibars. The program then calculates the altitude rounded to the nearest integer. For output the program displays the message: The altitude is: XX ft.” where XX is the calculated value of h. Determine the altitude if the pressure is 394mb.
Want to see the full answer?
Check out a sample textbook solutionChapter 4 Solutions
MATLAB: An Introduction with Applications
- Algebra: Structure And Method, Book 1AlgebraISBN:9780395977224Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. ColePublisher:McDougal LittellAlgebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:Cengage
- Glencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw HillAlgebra for College StudentsAlgebraISBN:9781285195780Author:Jerome E. Kaufmann, Karen L. SchwittersPublisher:Cengage LearningIntermediate AlgebraAlgebraISBN:9781285195728Author:Jerome E. Kaufmann, Karen L. SchwittersPublisher:Cengage Learning