
Concept explainers
Answer the following questions.
a. For what integer values of D will the code between if and end execute?
if D >= – 1 && 3 > D
code
end
b. For what values of F will the code between if and end execute?
if F >= 100 || F <= 5
code
end
c. What combinations of values for B and Q will cause a warning to be displayed?
if B >100 || (B<20 && Q~=0)
fprintf ('WARNING! Pararneters out of bounds. \n')
end
a.

Find the integer values for which the code inside the if and end executes.
Answer to Problem 1ICA
The integer values for which the code inside the if and end executes are
Explanation of Solution
The English translation of the if statement says that, the if statement is true when the variable D is greater than or equal to -3 and less than 1.
So from the number line, the values of D for which the expression is true are
Conclusion:
Hence, the integer values for which the code inside the if and end executes are
b.

Find the integer values for which the code inside the if and end executes.
Answer to Problem 1ICA
The integer values for which the code inside the if and end executes are
Explanation of Solution
The English translation of the if statement says that, the if statement is true when the variable F is greater than or equal to 100 or less than or equal to 5.
So from the number line, the values of F for which the expression is true are
That is F can be any real number excluding numbers between 5 to 100.
Conclusion:
Hence, the integer values for which the code inside the if and end executes are
c.

Find the integer values for which the code inside the “if” and “end” executes.
Answer to Problem 1ICA
The integer values for which the code inside the “if” and “end” executes are
Explanation of Solution
The English translation of the if statement says that, the if statement is true when the variable B is greater than 100 or when B is less than 20 and Q is not 0.
So from the number line, the values of B and Q for which the expression is true are
Conclusion:
Hence, the integer values for which the code inside the “if” and “end” executes are
Want to see more full solutions like this?
Chapter 19 Solutions
Thinking Like an Engineer: An Active Learning Approach (3rd Edition)
- Mechanical engineering, Don't use chatgpt. Strict warning.arrow_forward10:38 PM P 4136 54 A man Homework was due west for and 4km. He then changes directies walks on a bearing south-wes IS How far Point? of 1970 until he of his Starting Port Is he then from his stating What do you think about ... ||| Մ כarrow_forwardA simply supported T-shaped beam of 6m in length has to be designed to carry an inclined central point load W. Find the max- imum value of this load such that the maximum tensile and com- pression stresses on the beam do not exceed 30 and 60 respectively. N mm² N mm², 90 mm 80 mm Y W 60 mm 30° 10 mm 10 mm Xarrow_forward
- Problem 9.5 9.5 A 1080-kg car is parked on a sloped street. The figure shows its wheels and the position of its center of mass. The street is icy, and as a result the coefficient of static friction between the car's tires and the street surface is μs = 0.2. Determine the steepest slope (in degrees relative to the horizontal) at which the car could remain in equilibrium if a. the brakes are applied to both its front and rear wheels; b. the brakes are applied to the front (lower) wheels only. Problem 9.5 1380 mm 532 mm 2370 mmarrow_forwardCan someone explain please with conversionsarrow_forwardCorrect Answer is written below. Detailed and complete fbd only please. I will upvote, thank you. 1: The assembly shown is composed of a rigid plank ABC, supported by hinge at A, spring at B and cable at C.The cable is attached to a frictionless pulley at D and rigidly supported at E. The cable is made of steel with E = 200,000MPa and cross-sectional area of 500 mm2. The details of pulley at D is shown. The pulley is supported by a pin, passingthough the pulley and attached to both cheeks. Note that E is directly above B.Given: H = 3 m; L1 = 2 m; L2 = 4 m; w = 12 kN/m; x:y = 3:4Spring Parameters:Wire diameter = 30 mmMean Radius = 90 mmNumber of turns = 12Modulus of Rigidity = 80 GPaAllowable stresses:Allowable shear stress of Pin at D = 85 MPaAllowable normal stress of cheek at D = 90MPaAllowable bearing stress of cheek at D = 110MPa1. Calculate the reaction of spring Band tension in cable at C.2. Calculate the vertical displacementat C and the required diameter ofpin at D.3.…arrow_forward
- Correct answer and complete fbd only. I will upvote. The compound shaft, composed of steel,aluminum, and bronze segments, carries the two torquesshown in the figure. If TC = 250 lb-ft, determine the maximumshear stress developed in each material (in ksi). The moduliof rigidity for steel, aluminum, and bronze are 12 x 106 psi, 4x 106 psi, and 6 x 106 psi, respectivelyarrow_forwardCan you explain the algebra steps that aren't shown but stated to be there, on how to get this equationarrow_forwardCorrect answer and complete fbd only. I will upvote. A flanged bolt coupling consists of two concentric rows of bolts. The inner row has 6 nos. of 16mm diameterbolts spaced evenly in a circle of 250mm in diameter. The outer row of has 10 nos. of 25 mm diameter bolts spaced evenly in a circle of 500mm in diameter. If the allowable shear stress on one bolt is 60 MPa, determine the torque capacity of the coupling. The Poisson’s ratio of the inner row of bolts is 0.2 while that of the outer row is 0.25 and the bolts are steel, E =200 GPa.arrow_forward
- Correct answer and complete fbd only. I will upvote. 10: The constant wall thickness of a steel tube with the cross sectionshown is 2 mm. If a 600-N-m torque is applied to the tube. Use G = 80 GPa forsteel.1. Find the shear stress (MPa) in the wall of the tube.2. Find the angle of twist, in degrees per meter of length.arrow_forwardCORRECT ANSWER WITH COMPLETE FBD ONLY. I WILL UPVOTE. A torque wrench is used to tighten the pipe shown.Dimensions: S1 = 400 mm; S2 = 250 mm; S3 = 100 mmModulus of Rigidity G = 78 GPa1. The diameter of the solid pipe is 20 mm. How much is themaximum force P (N) that can be applied based on theallowable shear stress of 60 MPa?2. For a hollow pipe with 50 mm outside diameter and is 6 mmthick, compute for the maximum force P (kN) that can beapplied such that the angle of twist at A does not exceed 5degrees.3. The torque applied to tighten the hollow pipe is 200 N-m.Given: Pipe outside diameter = 50 mm Pipe thickness = 6 mmSolve for the resulting maximum shear stress (MPa) in the pipe.arrow_forwardCorrect answer and complete fbd only. I will upvote. 6: The shaft carries a total torque T0 that is uniformly distributedover its length L. Determine the angle of twist (degrees) of the shaft in termsif T0 = 1.2 kN-m, L = 2 m, G = 80 GPa, and diameter = 120 mm.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





