An unmanned X-43A scramjet test vehicle has achieved a maximum speed of Mach number 9.68 in a test flight over the Pacific Ocean. Mach number is defined as the speed of an object divided by the speed of sound. Assuming the speed of sound is 343 meters per second, write a MAT LAB program that asks the user to provide a speed as a Mach number, calculates the corresponding speed in miles per hour, and displays the speed in a formatted sentence as shown in the following sample output. Note that the speed in mph should be shown as an integer. If the user provides a negative value for the Mach number, your program should display an error message and terminate.
Enter the speed as a Mach number: -2
Error: The Mach number must not be negative.
Enter the speed as a Mach number: 0
The speed of the plane is 0 mph.
Enter the speed as a Mach number: 9.68
The speed of the plane is 7425 mph.
Want to see the full answer?
Check out a sample textbook solutionChapter 18 Solutions
Thinking Like an Engineer: An Active Approach, Student Value Edition Plus MyLab Engineering with Pearson eText - Access Card Package (4th Edition)
- pls expalin to me step by step and write clearly. i will rate your answer immediately thanksarrow_forwardSuppose that the total cost function for an is linear, that the marginal cost is $54, and that the total cost for 50 players is $8700. Write the equation of this MP3 player cost function and then graph it.arrow_forwardTires are one of the most frequently encountered applications of the gas laws that we never think about. We fill our tires with air, or with nitrogen, but it always works out the same way. Enough gas goes in, the tire inflates, and then the pressure starts going up. In this assignment, we’ll be investigating the ways that the gas laws impact how we treat our tires. Q1. I have good information that in Fast 29, Dominic Toretto (Vin Diesel) will need to refill a tire quickly during a dramatic moment. For this reason, he has a 3.00 L tank of compressed air that is under 2.7892*103 mmHg and is kept cool in dry ice at -35.0 °C. When Dom hooks his compressed air up to his completely empty 10.50 L tire at 39.2 °C and lets it run, what will his final tire pressure be, in atm? Assume all the air is transferred into the tire. Is his tire pressure above the 2.31 atm that he needs to save the planet/his family/his crew? Q2. Your car tire pressure sensor looks to see when your tire pressure…arrow_forward
- You are tasked with designing the runway on an aircraft carrier. The minimum speed for the F/A-18 Hornet is 193.8 mph. The Hornet weighs 40,000 lbf and its twin engines provide a thrust of ~40,000 lbf combined, providing a max acceleration of 1g. How long must the deck be to takeoff unassisted in feet?arrow_forwardIn the movie Back to the Future, Marty travels back in time to 1955. In 1955, the only available light bulbs in the United States were incandescent bulbs. Assume that last year, you traveled back in time to 1955 and changed all the light bulbs in a single average American household (45 light bulbs) from 75-watt incandescent bulbs to the corresponding 17-watt LED bulbs. The estimated usage is 3 hours per day , at a cost of $0.11 per kilowatt-hour . Based on energy cost alone - not considering the cost to replace any light bulbs and not considering any changes in energy cost with time - how much money in dollars would this household have saved over a 66-year time span (from 1955 to 2021) by changing from incandescent to LED bulbs?arrow_forwardUsing MATLAB editor, make a script m-file which includes a header block and comments: Utilizing the ideal gas law: Vmol= RT/P Calculate the molecular volume where: R = 0.08206 L-atm/(mol-K) P = 1.015 atm. and T = 270 - 315 K in 5 degree increments Make a display matrix which has the values of T in the first column and Vmol in the second column Save the script and publish function to create a pdf file from the script in a file named "ECE105_Wk2_L1_Prep_1"arrow_forward
- In the United States, electricity is sold using the SI units of kilowatt (kW) or megawatt (MW), and fuel for power generation stations is generally purchased using English units, e.g., British thermal unit (Btu), gallon (gal), and ton. An industrial power plant has an average annual load of 100 MW (electrical). If the overall thermal efficiency is 33% (based on HHV), what is the annual cost of fuel if the plant is fired with (a) natural gas, (b) No. 2 fuel oil, and (c) bituminous coal? Use the data from Tables 2.2, 2.7, and 2.13. Assume the cost of natural gas is $5/million Btu, the cost of No. 2 fuel oil is $3/gal, and the cost of bituminous coal is $60/ton (1 ton = 2000 lbm)arrow_forwardEngr 215 Matlab Fahrenheit to Celsius using multiple statements Given a Fahrenheit value temperatureFahrenheit, write a statement that assigns temperatureCelsius with the equivalent Celsius value. While the equation is C = 5/9 * (F - 32), as an exercise use two statements, the first of which is "fractionalMultiplier = 5/9;"]arrow_forwardI wanted to create two spheres that overlap each other in MATLAB. The image has my code and results. I only see one sphere in the results. Why is that? Can you give me the code that will create two overlaying spheres in one plot?arrow_forward
- Please show model/ drawing and kinematic analysis. Please show all steps and write down the formula you are using for solving the problem before making any numerical calculation.arrow_forwardRewrite the following sentences to better suit the engineering writing style, as described in lectures. “After averaging the results from several tests, it was determined that the most efficient tire pressure was 45 psi.” “We discovered that the rising temperature in the water tank was due to an overheating filter pump.” “The air flow speed is measured and it’s found to be 12 m/s.”arrow_forwardI was going over the equations for the notes in class and I had a thought. Based on the equations in the image, you could get negative propellant mass. So, I coded it in matlab and I got negative mass. How is that possible? I think I used practical values for the velocity and mass ratio and so on. Did I do something wrong?arrow_forward
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY