
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
4th Edition
ISBN: 9780134639673
Author: Elizabeth A. Stephan, David R. Bowman, William J. Park, Benjamin L. Sill, Matthew W. Ohland
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 18.4, Problem 14CC
Write MATLAB code to represent the following conditional statements.
- a. If your time running a marathon (stored in MTime) is less than your previous fastest time (stored in PersBest), display the message “New personal best” and replace the value in PersBest with the value in MTime.
- b. If the scales indicate that the truck weighs more than its legal maximum weight, display the message “Reduce the load in the truck”; otherwise, display “Load acceptable.”
Expert Solution & Answer

Want to see the full answer?
Check out a sample textbook solution
Students have asked these similar questions
Q2: Find the shear load on bolt A for the
connection shown in Figure 2.
Dimensions are in mm
Fig. 2
24
0-0
0-0
A
180kN
(10 Mark
determine the direction and magnitude of angular velocity ω3 of link CD in the four-bar linkage using the relative velocity graphical method
Four-bar linkage mechanism, AB=40mm, BC=60mm, CD=70mm, AD=80mm, =60°, w1=10rad/s. Determine the direction and
magnitude of w3 using relative motion graphical method.
A
B
2
3
77777
477777
Chapter 18 Solutions
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
Ch. 18.1 - Create a written algorithm that determines the...Ch. 18.1 - Prob. 2CCCh. 18.1 - Create a flowchart that determines the dose of a...Ch. 18.1 - Create a flowchart that determines the state of...Ch. 18.2 - Prob. 5CCCh. 18.2 - Prob. 6CCCh. 18.3 - Assume the following variables have been defined:...Ch. 18.3 - Prob. 8CCCh. 18.3 - Write a short section of MATLAB code that will...Ch. 18.3 - Prob. 10CC
Ch. 18.3 - Prob. 11CCCh. 18.3 - Assume a user has responded to the question "Do...Ch. 18.3 - Assume a user has responded to the question "Do...Ch. 18.4 - Write MATLAB code to represent the following...Ch. 18.4 - Write MATLAB code to represent the following...Ch. 18.4 - Write a MATLAB function named sumTtUp that will...Ch. 18.4 - Prob. 17CCCh. 18.5 - A device constructed to throw various objects can...Ch. 18.6 - Prob. 19CCCh. 18.6 - Prob. 20CCCh. 18.7 - Write MATLAB code to modify the previous gravity...Ch. 18.7 - Write MAT LAB code using try-catch to ask the user...Ch. 18 - Create a written algorithm and flowchart to...Ch. 18 - The Occupational Safety Health Administration...Ch. 18 - Prob. 3ICACh. 18 - Create a flowchart that represents the following...Ch. 18 - Create an algorithm to classify a given altitude...Ch. 18 - Answer the following questions. a. For what...Ch. 18 - Answer the following questions. a. For what...Ch. 18 - For each task listed, write a single MAT LAB...Ch. 18 - Prob. 9ICACh. 18 - What is stored in variable A after each of the...Ch. 18 - What will be displayed by the following code in...Ch. 18 - Ask users to enter a matrix that could be any size...Ch. 18 - A menu is generated using the following code:...Ch. 18 - A menu is generated using the following code:...Ch. 18 - Write a program using if-elseif-else statements...Ch. 18 - Write a program using switch-case statements that...Ch. 18 - Prob. 17ICACh. 18 - Write a program that asks the user to enter the...Ch. 18 - Prob. 19ICACh. 18 - Assume you are required to generate the menus...Ch. 18 - Assume you are required to generate the menus...Ch. 18 - Prob. 22ICACh. 18 - Assume you are required to generate the menus...Ch. 18 - We go to a state-of-the-art amusement park. All...Ch. 18 - A phase diagram for carbon and platinum is shown....Ch. 18 - Prob. 27ICACh. 18 - Prob. 28ICACh. 18 - Prob. 29ICACh. 18 - The Apple TV is a personal video device created by...Ch. 18 - Prob. 2RQCh. 18 - Prob. 3RQCh. 18 - Create an algorithm to determine whether a given...Ch. 18 - The specific gravity of gold is 19.3. Write a...Ch. 18 - An unmanned X-43A scramjet test vehicle has...Ch. 18 - A rod on the surface of Jupiter's moon Callisto...Ch. 18 - The Eco-Marathon is an annual competition...Ch. 18 - Assume a variable R contains a single number....Ch. 18 - Prob. 10RQCh. 18 - Create a program to determine whether a...Ch. 18 - Create a program to determine whether a given Mach...Ch. 18 - Humans can see electromagnetic radiation when the...Ch. 18 - For the protection of both the operator of a...Ch. 18 - Prob. 15RQCh. 18 - Prob. 17RQCh. 18 - Your function should use polyfit to determine the...Ch. 18 - Prob. 19RQCh. 18 - Prob. 20RQCh. 18 - The variable grade can have any real number value...Ch. 18 - Write a MATLAB program that will allow the student...Ch. 18 - One of the 14 NAE Grand Challenges is Engineering...Ch. 18 - Prob. 25RQ
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, mechanical-engineering and related others by exploring similar questions and additional content below.Similar questions
- Four-bar linkage mechanism, AB=40mm, BC=60mm, CD=70mm, AD=80mm, =60°, w1=10rad/s. Determine the direction and magnitude of w3 using relative motion graphical method. A B 2 3 77777 477777arrow_forwardThe evaporator of a vapor compression refrigeration cycle utilizing R-123 as the refrigerant isbeing used to chill water. The evaporator is a shell and tube heat exchanger with the water flowingthrough the tubes. The water enters the heat exchanger at a temperature of 54°F. The approachtemperature difference of the evaporator is 3°R. The evaporating pressure of the refrigeration cycleis 4.8 psia and the condensing pressure is 75 psia. The refrigerant is flowing through the cycle witha flow rate of 18,000 lbm/hr. The R-123 leaves the evaporator as a saturated vapor and leaves thecondenser as a saturated liquid. Determine the following:a. The outlet temperature of the chilled waterb. The volumetric flow rate of the chilled water (gpm)c. The UA product of the evaporator (Btu/h-°F)d. The heat transfer rate between the refrigerant and the water (tons)arrow_forward(Read image) (Answer given)arrow_forward
- Problem (17): water flowing in an open channel of a rectangular cross-section with width (b) transitions from a mild slope to a steep slope (i.e., from subcritical to supercritical flow) with normal water depths of (y₁) and (y2), respectively. Given the values of y₁ [m], y₂ [m], and b [m], calculate the discharge in the channel (Q) in [Lit/s]. Givens: y1 = 4.112 m y2 = 0.387 m b = 0.942 m Answers: ( 1 ) 1880.186 lit/s ( 2 ) 4042.945 lit/s ( 3 ) 2553.11 lit/s ( 4 ) 3130.448 lit/sarrow_forwardProblem (14): A pump is being used to lift water from an underground tank through a pipe of diameter (d) at discharge (Q). The total head loss until the pump entrance can be calculated as (h₁ = K[V²/2g]), h where (V) is the flow velocity in the pipe. The elevation difference between the pump and tank surface is (h). Given the values of h [cm], d [cm], and K [-], calculate the maximum discharge Q [Lit/s] beyond which cavitation would take place at the pump entrance. Assume Turbulent flow conditions. Givens: h = 120.31 cm d = 14.455 cm K = 8.976 Q Answers: (1) 94.917 lit/s (2) 49.048 lit/s ( 3 ) 80.722 lit/s 68.588 lit/s 4arrow_forwardProblem (13): A pump is being used to lift water from the bottom tank to the top tank in a galvanized iron pipe at a discharge (Q). The length and diameter of the pipe section from the bottom tank to the pump are (L₁) and (d₁), respectively. The length and diameter of the pipe section from the pump to the top tank are (L2) and (d2), respectively. Given the values of Q [L/s], L₁ [m], d₁ [m], L₂ [m], d₂ [m], calculate total head loss due to friction (i.e., major loss) in the pipe (hmajor-loss) in [cm]. Givens: L₁,d₁ Pump L₂,d2 오 0.533 lit/s L1 = 6920.729 m d1 = 1.065 m L2 = 70.946 m d2 0.072 m Answers: (1) 3.069 cm (2) 3.914 cm ( 3 ) 2.519 cm ( 4 ) 1.855 cm TABLE 8.1 Equivalent Roughness for New Pipes Pipe Riveted steel Concrete Wood stave Cast iron Galvanized iron Equivalent Roughness, & Feet Millimeters 0.003-0.03 0.9-9.0 0.001-0.01 0.3-3.0 0.0006-0.003 0.18-0.9 0.00085 0.26 0.0005 0.15 0.045 0.000005 0.0015 0.0 (smooth) 0.0 (smooth) Commercial steel or wrought iron 0.00015 Drawn…arrow_forward
- The flow rate is 12.275 Liters/s and the diameter is 6.266 cm.arrow_forwardAn experimental setup is being built to study the flow in a large water main (i.e., a large pipe). The water main is expected to convey a discharge (Qp). The experimental tube will be built at a length scale of 1/20 of the actual water main. After building the experimental setup, the pressure drop per unit length in the model tube (APm/Lm) is measured. Problem (20): Given the value of APm/Lm [kPa/m], and assuming pressure coefficient similitude, calculate the drop in the pressure per unit length of the water main (APP/Lp) in [Pa/m]. Givens: AP M/L m = 590.637 kPa/m meen Answers: ( 1 ) 59.369 Pa/m ( 2 ) 73.83 Pa/m (3) 95.443 Pa/m ( 4 ) 44.444 Pa/m *******arrow_forwardFind the reaction force in y if Ain = 0.169 m^2, Aout = 0.143 m^2, p_in = 0.552 atm, Q = 0.367 m^3/s, α = 31.72 degrees. The pipe is flat on the ground so do not factor in weight of the pipe and fluid.arrow_forward
- Find the reaction force in x if Ain = 0.301 m^2, Aout = 0.177 m^2, p_in = 1.338 atm, Q = 0.669 m^3/s, and α = 37.183 degreesarrow_forwardProblem 5: Three-Force Equilibrium A structural connection at point O is in equilibrium under the action of three forces. • • . Member A applies a force of 9 kN vertically upward along the y-axis. Member B applies an unknown force F at the angle shown. Member C applies an unknown force T along its length at an angle shown. Determine the magnitudes of forces F and T required for equilibrium, assuming 0 = 90° y 9 kN Aarrow_forwardProblem 19: Determine the force in members HG, HE, and DE of the truss, and state if the members are in tension or compression. 4 ft K J I H G B C D E F -3 ft -3 ft 3 ft 3 ft 3 ft- 1500 lb 1500 lb 1500 lb 1500 lb 1500 lbarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- 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

Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press

Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON

Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education

Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY

Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning

Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY
First Law of Thermodynamics, Basic Introduction - Internal Energy, Heat and Work - Chemistry; Author: The Organic Chemistry Tutor;https://www.youtube.com/watch?v=NyOYW07-L5g;License: Standard youtube license