Concept explainers
Create a program to determine whether a given Mach number is subsonic, transonic, supersonic, or hypersonic. Assume the user will enter the speed of the object in meters per second, and the program will determine the Mach number (actual speed divided by the speed of sound). As output, the program will display the Mach number to two decimal places. The program should include a check to ensure that the user entered a positive value. If a nonpositive value is entered, the program should inform the user of the error and terminate.
The speed of sound 1s about 343 m/s. The classifications are as follows:
Subsonic < Mach 1
Transonic = Mach 1
Mach 1 <Supersonic< Mach 5
Hypersonic ≥ Mach 5
Want to see the full answer?
Check out a sample textbook solutionChapter 18 Solutions
Thinking Like An Engineer: An Active Learning Approach, Student Value Edition (4th Edition)
- Could you change the lines in to two lines just like it shows in the graph . Make it exactly those two lines. Keep the colors and the same. Use this code on MATLAB and fix it. % Sample data for Diesel and Petrol cars carPosition = linspace(1, 60, 50); % Assumed positions of cars % Define your seed here seed = 50; rand('seed',seed); % Set the seed for reproducibility % Assumed CO2 emissions for Diesel and Petrol CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol % Fit polynomial curves with a reduced degree of 2 pDiesel = polyfit(carPosition, CO2Diesel, 2); pPetrol = polyfit(carPosition, CO2Petrol, 2); % Generate points for best fit lines fitDiesel = polyval(pDiesel, carPosition); fitPetrol = polyval(pPetrol, carPosition); % Combined best fit combinedFit = (fitDiesel + fitPetrol) / 2; % Plotting the data figure; hold on; % Define the split index and shorten…arrow_forwardDon't Use Chat GPT Will Upvote And Give Handwritten Solution Pleasearrow_forwardQ4: Create a Visual Basic Project to find the value of the following series: h? h4 h3 cos(h) = h – 2! 3! 4! Write the code program so that the value of angle (h) is entered into inputbox. Estimate the value of series (cos(h)) so that the absolute value of any term is greater or equal to 10-6. Display the required number of terms (N) which it used in this series in a text box and display the result of series (cos(h)) in another separate text box.arrow_forward
- 3:04 7 This question is a long free-response question. Show your work for each part of the question. Cylindrical Object Incline Figure 1 A cylindrical object can roll down an incline, as shown in Figure 1. The incline is slightly less than one meter in length. A group of students wants to determine the acceleration of the object while it is rolling down the incline. The students have access to the following equipment. · A stopwatch, which can measure time intervals up to 999 s with a precision of 0.01 s · A clock, which can measure time intervals up to 12 hours with a precision of 1 min ute (60 s) • A meterstick, which can measure lengths up to 1 m with a precision of 1 mm · A pair of calipers, which can measure lengths up to 10 cm with a precision of 0.05 mm (a) Assume the object moves with a constant acceleration as it rolls down the incline. Write an equation that includes acceleration and quantities that can be measured or obtained from measurements by using the available equipment…arrow_forwardREAD THE INSTRUCTIONS!!! DO NOT ANSWER THIS IF YOU ALREADY ANSWERED. I WILL DOWNVOTE. ANSWER THIS COMPLETE, CORRECT, TYPEWRITTEN. I WANT IT TO BE DIGITALLY ANSWERED NOT HANDWRITTEN. I WILL UPVOTE IF YOU MEET THESE.arrow_forwardI think instantaneous velocity is less than 0 at d,e,f (negative slope) Need help how to find instantaneous accelerationarrow_forward
- Your choices from the drop down menu are "1, 2.5, and 3.5" Please see both images for reference. Thanks!arrow_forwardPlease walk me through finding how much force the women need to pull the force.arrow_forwardCreate an illustration or diagram of the amusement park ride called THE BUMPER CAR RIDE, then proceed to add labels based on the guidelines provided within the image. The screenshot is the example of the diagram BUT THAT IS A DIAGRAM OF THE GRAVITRON RIDE. I need an illustration DIAGRAM OF THE BUMPER CAR RIDE, do not answer using AI.arrow_forward
- I need help with this question please. thank youarrow_forwardThere is a small space between the orange and purple line could you please connect the two lines together also can you please make the purple line shorter and then connect the purple line to the orange line, please take out the box that says “Diesel, petrol, Diesel best fit, petrol best fit”. Also when ever I run this code the graph shows up but there are still errors that comes up could you please fix them when you are running this on MATLAB. Please use this code on MATLAB and fix it. % Sample data for Diesel and Petrol cars carPosition = linspace(1, 60, 50); % Assumed positions of cars % Fix the random seed for reproducibility rng(50); % Assumed CO2 emissions for Diesel and Petrol CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol % Fit polynomial curves pDiesel = polyfit(carPosition, CO2Diesel, 3); pPetrol = polyfit(carPosition, CO2Petrol, 3); % Generate…arrow_forwardI need help with the purple line the line that you see one the graph on the picture needs to be on the graph. Use this code to add the purple line and make sure it’s crossing the orange line. Please make sure the lines are positioned the same way it is shown on the picture with the graph. Use this code on MATLAB and add the purple line. % Sample data for Diesel and Petrol cars carPosition = linspace(1, 60, 50); % Assumed positions of cars % Use the 'seed' function instead of 'rng' seed = 50; % Define your seed here rand('seed',seed); % Assumed CO2 emissions for Diesel and Petrol CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol % Fit polynomial curves with a reduced degree of 2 pDiesel = polyfit(carPosition, CO2Diesel, 2); pPetrol = polyfit(carPosition, CO2Petrol, 2); % Generate points for best fit lines fitDiesel = polyval(pDiesel, carPosition);…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