
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, Problem 10ICA
What is stored in variable A after each of the following code segments is executed? If the program returns an error, indicate why.
- a. A=5;
if A/2>2
A= A*–1;
else
A = A/2;
End
- b. x=2; y=4; A=0;
if x + y<4
A= A+2;
elseif x+y <6
A = A + 4;
end
- c. T=6; A=–1;
if T/3>2
A = A*–1;
elseif T/3<=2
A = A+2;
end
- d. x=2; y=0; A=10;
if x<=0&&y<=0
A = A+2;
elseif x>=D&&y<0
A = A/2;
elseif x>=2&&y<=0
A = A*2;
end
Expert Solution & Answer

Want to see the full answer?
Check out a sample textbook solution
Students have asked these similar questions
A long (into the page) duct with three walls is shown in the figure below. A constant rate
of energy (q = 5000 W) is supplied to the backside of the bottom wall. All this power leaves
surface 1 as radiative heat flow into the duct (i.e., participates in radiative exchange with
surfaces 2 and 3). The backside of Surface 2 is perfectly insulated. The table below lists
geometric and radiative properties of each surface.
Calculate T3-
2
Surface
T [K]
ε
AiFij, [m²]
1
700
1
A1F12
= 0.18
2
3
1
A2F23 = 0.86
1
A3 F31 = 0.36
Shaft 1 is the motor shaft and rotates at 1160 rpm. Calculate the transmission ratio and the angular velocity of output shaft 6.
Na=18Nb=34Nc=20Nd=62Ne=30Nf=60Ng=2 (worm gear)Nh=40Nı=16Nj=88
The power transmission system shown in the figure includes a helical and a bevel gear. The shaft is supported by two bearings and rotates at 600 rpm. The load on the bevel gear is -0.5Pi - 0.41Pj + 0.44Pk. The axial load on the shaft is carried by the bearing on the left. For a lifespan of 36,000 hours and 98% reliability, select two identical single-row tapered roller bearings.
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
- As shown in the figure, a shaft manufactured with a surface treatment will carry the belt-pulley system, which is loaded with continuous and non-impact loads (in the YZ plane at α = 30 degrees). Design a shaft with a 95% reliability rating, a 2.5 safety factor, and made of cold-drawn AISI 1045 material. The shaft has no discontinuities or radius.arrow_forwardAir is used as the working fluid in a simple ideal Brayton cycle that has a pressure ratio of 12, a compressor inlet temperature of 300 K, and a turbine inlet temperature of 1000 K. The properties of air at room temperature are cp=1.005 kJ/kg⋅K and k=1.4 . Determine the required mass flow rate of air for a net power output of 66 MW, assuming both the compressor and the turbine have an isentropic efficiency of 85 percent. The required mass flow rate of air is _________ kg/s.arrow_forwardF T = 450 Nm A ☑ 100 mm B 500 mm 1000 mm Şekil, 52 kN eksantrik yük taşıyan bir sonsuz mili göstermektedir. Mil radyal ve eksenel yük taşıyan rulmanlarla yataklanmıştır. Yük şekilde gösterildiği gibi somuna asılmış ve dönmeyi engellemektedir. Sürtünmeyi yenip yükü kaldırmak için uygulanan tork 450 Nm'dir. A ve B noktalarındaki gerilmeleri hesaplayınız. Milin, AISI 4140 540°C'DE temperlenmiş alaşımlı çelik olduğu bilindiğine göre maksimum kayma gerilmesi teorisine göre emniyetli olup olmadığını belirleyiniz. The figure shows a worm shaft carrying a 52 kN eccentric load. The shaft is supported by bearings that carry radial and axial loads. The load is suspended from the nut, as shown, preventing rotation. The torque applied to overcome friction and lift the load is 450 Nm. Calculate the stresses at points A and B. Knowing that the shaft is made of AISI 4140 alloy steel tempered at 540˚C, determine whether it is safe according to the maximum shear stress theory. 400 mmarrow_forward
- Stress, ksi 220 200 180 160 140 120 100 80 Question P: Data for an extension spring is shown in the table below. Use only this table for this question! Also shown is an abridged version of Table 18-2 and figure 18 Spring Material ASTM A228 Music wire Max Operating Load: Fo= 21 Type of Service = Average Estimated Wahl Factor: K = 1.200 Required Mean Diameter: D = 0.550 Design Stress in Wire: Td 90,000 psi TABLE 18-2 Wire Gages and Diameters for Springs Gage no. U.S. steel wire gage¹ (in) Music wire gage² (in) 0.6 26 0.0181 0.063 27 0.0173 0.067 28 00162 0.071 29 00150 0.075 30 00140 0.080 31 0.0132 0.085 22 0.0128 0.090 33 00118 0.095 34 0.0104 0.100 35 0.0095 0.106 36 0.0090 Wire diameter, mm Compression and extension springs, Music Wire, ASTM A228 O'S 5.4 5.8 6.2 0.112 1515 1380 Light service 1240 1100 Average service 965 Severe service 825 690 Wire diameter, in OLIO 0.190 0120 0.250 550 Stress, MPa FIGURE 18-9 Design shear stresses for ASTM A228 steel wire (music wire) What is the…arrow_forwardEndurance limit,, (psi) 100 000 80 000 60 000 Ground 40 000 20 000 As-rolled 0 50 60 70 80 90 100 110 120 Polished Machined or cold drawn As-forged 130 140 150 160 17 Tensile strength, s, (ksi) (a) U.S. customary units What is the minimum shaft diameter of D3 in inches? (Type in a three-decimal number). Note: We want to know the diameter D3, of the shaft, not the diameter at the base of a ring groove, profile keyseat or any other geometric feature on the shaft. Answer: x (3.008)arrow_forwardQuestion G: The machined shaft shown in the diagram below has the following components on it: (A) Sheave (B) Bearing (C) Sprocket (D) Bearing (E) Spur Gear Diameter D3 is located underneath Bearing B. Only the sheave at point A, the sprocket at point C and the spur gear at point E are held in place with rings. Diameter Dy is located underneath Bearing B. Only the sheave at point A, the sprocket at point C and the spur gear at point E are held in place with rings. PPENDIX 3 Design Properties of Carbon and Alloy Steels Material designation (SAE number) Condition Tensile strength Yield strength (ksi) (MPa) (MPa) Bearing Bearing 1020 Hot-rolled 55 379 207 V-belt sheave 6.00 in PD DD 1020 Cold-drawn 61 420 352 Spur gear Chain sprocket 10.00 in PD 20 FD 12.00 in PD 1020 Annealed 60 414 296 (a) Side view of shaft 10401 Hot-rolled 72 496 290 Belt drive to conveyor 1040 Cold-drawn 80 552 1040 OQT 1300 88 607 1040 OQT 400 113 779 1050 Hot-rolled 90 620 leput from water turbine Gear E drives Q to…arrow_forward
- 220 200 180 160 140 120 Stress, ksi 100 80 Question O: Data for an extension spring is shown in the table below. Use only this table for this question! Also shown is an abridged version of Table 18-2 and figure 18. Spring Material ASTM A228 Music wire Max Operating Load: F₁ = 57 Type of Service Average Estimated Wahl Factor: K= 1.200 Required Mean Diameter: D = 0.850 Design Stress in Wire: 1 = 115,000 psi TABLE 18-2 Wire Gages and Diameters for Springs 0.0181 27 0.0175 Gage no. U.S. steel wire gage (in) Music wire gage² (in) 0063 0.067 28 0.0162 0.071 29 0.0150 0.075 30 00140 0.080 31 0.0132 0085 32 00128 0.090 33 00118 0096 34 0.0104 0.100 35 0.0095 36 0.0090 1.8 Wire diameter, mm 0.106 0.112 5.4 5.8 6.2 1515 Compression and extension springs, Music Wire, ASTM A228. 1380 Light service 1240 Average service 1100 965 Severe service 825 690 P10100 OSO 0 0.150 0.170 061'0 0.210 0.230 F 0.250 550 Stress, MPa Wire diameter, in FIGURE 18-9 Design shear stresses for ASTM A228 steel wire (music…arrow_forwardPlease see attachment.arrow_forwardPlease see attachment.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Precision Machining Technology (MindTap Course Li...Mechanical EngineeringISBN:9781285444543Author:Peter J. Hoffman, Eric S. Hopewell, Brian JanesPublisher:Cengage LearningUnderstanding Motor ControlsMechanical EngineeringISBN:9781337798686Author:Stephen L. HermanPublisher:Delmar Cengage LearningAutomotive Technology: A Systems Approach (MindTa...Mechanical EngineeringISBN:9781133612315Author:Jack Erjavec, Rob ThompsonPublisher:Cengage Learning
- Refrigeration and Air Conditioning Technology (Mi...Mechanical EngineeringISBN:9781305578296Author:John Tomczyk, Eugene Silberstein, Bill Whitman, Bill JohnsonPublisher:Cengage LearningElectrical Transformers and Rotating MachinesMechanical EngineeringISBN:9781305494817Author:Stephen L. HermanPublisher:Cengage LearningInternational Edition---engineering Mechanics: St...Mechanical EngineeringISBN:9781305501607Author:Andrew Pytel And Jaan KiusalaasPublisher:CENGAGE L

Precision Machining Technology (MindTap Course Li...
Mechanical Engineering
ISBN:9781285444543
Author:Peter J. Hoffman, Eric S. Hopewell, Brian Janes
Publisher:Cengage Learning

Understanding Motor Controls
Mechanical Engineering
ISBN:9781337798686
Author:Stephen L. Herman
Publisher:Delmar Cengage Learning

Automotive Technology: A Systems Approach (MindTa...
Mechanical Engineering
ISBN:9781133612315
Author:Jack Erjavec, Rob Thompson
Publisher:Cengage Learning

Refrigeration and Air Conditioning Technology (Mi...
Mechanical Engineering
ISBN:9781305578296
Author:John Tomczyk, Eugene Silberstein, Bill Whitman, Bill Johnson
Publisher:Cengage Learning

Electrical Transformers and Rotating Machines
Mechanical Engineering
ISBN:9781305494817
Author:Stephen L. Herman
Publisher:Cengage Learning

International Edition---engineering Mechanics: St...
Mechanical Engineering
ISBN:9781305501607
Author:Andrew Pytel And Jaan Kiusalaas
Publisher:CENGAGE L
The Robot Revolution: The New Age of Manufacturing | Moving Upstream; Author: Wall Street Journal;https://www.youtube.com/watch?v=HX6M4QunVmA;License: Standard Youtube License