Thinking Like an Engineer: An Active Learning Approach (3rd Edition)
Thinking Like an Engineer: An Active Learning Approach (3rd Edition)
3rd Edition
ISBN: 9780133593211
Author: Elizabeth A. Stephan, David R. Bowman, William J. Park, Benjamin L. Sill, Matthew W. Ohland
Publisher: PEARSON
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 19, Problem 1ICA

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.

Expert Solution
Check Mark
To determine

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 1D<3_.

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 1D<3.

Conclusion:

Hence, the integer values for which the code inside the if and end executes are 1D<3_.

b.

Expert Solution
Check Mark
To determine

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 F(5,100)_.

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 F(5,100), where denotes the set of real numbers.

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 F(5,100)_.

c.

Expert Solution
Check Mark
To determine

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 B={B>100,Q=0B<20,Q0_.

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 B={B>100,Q=0B<20,Q0

Conclusion:

Hence, the integer values for which the code inside the “if” and “end” executes are B={B>100,Q=0B<20,Q0_.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
For the position shown in the figure the spring is unstretched. The spring constant k, is designed such that after the system is released from rest, the speed of the mass is zero just as the 0.6 slug mass touches the floor. Find the spring constant, k and the maximum speed of block A and the location (distance above floor) where this occurs.
||! Sign in MMB241 - Tutorial L9.pd X PDF MMB241 - Tutorial L10.pX DE MMB241 - Tutorial L11.p x PDF Lecture W12 - Work and X File C:/Users/KHULEKANI/Desktop/mmb241/MMB241%20-%20Tutorial%20L11.pdf PDE Lecture W11 - Power and X Draw Alla | Ask Copilot ++ 3 of 3 | D 6. If the 50-kg load A is hoisted by motor M so that the load has a constant velocity of 1.5 m/s, determine the power input to the motor, which operates at an efficiency € = 0.8. 1.5 m/s 2 7. The sports car has a mass of 2.3 Mg, and while it is traveling at 28 m/s the driver causes it to accelerate at 5m/s². If the drag resistance on the car due to the wind is FD= 0.3v²N, where v is the velocity in m/s, determine the power supplied to the engine at this instant. The engine has a running efficiency of P = 0.68. 8. If the jet on the dragster supplies a constant thrust of T-20 kN, determine the power generated by the jet as a function of time. Neglect drag and rolling resistance, and the loss of fuel. The dragster has a mass of 1…
Q | Sign in PDE Lecture W09.pdf PDF MMB241 - Tutorial L9.pdi X PDF MMB241 - Tutorial L10.p X PDF MMB241 - Tutorial L11.p X Lecture W12-Work and X + File C:/Users/KHULEKANI/Desktop/mmb241/Lecture%20W12%20-%20Work%20and%20Energy.pdf ||! Draw | IA | a | Ask Copilot Class Work + 33 of 34 D Question 1 The engine of a 3500-N car is generating a constant power of 50 hp (horsepower) while the car is traveling up the slope with a constant speed. If the engine is operating with an efficiency of € 0.8, determine the speed of the car. Neglect drag and rolling resistance. Use g 9.81 m/s² and 1 hp = 745.7 W. 10 го Question 2 A man pushes on a 60-N crate with a force F. The force is always directed downward at an angle of 30° from the horizontal, as shown in the figure. The magnitude of the force is gradually increased until the crate begins to slide. Determine the crate's initial acceleration once it starts to move. Assume the coefficient of static friction is μ = 0.6, the coefficient of kinetic…

Chapter 19 Solutions

Thinking Like an Engineer: An Active Learning Approach (3rd Edition)

Knowledge Booster
Background pattern image
Mechanical Engineering
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
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press
Text book image
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON
Text book image
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education
Text book image
Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY
Text book image
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning
Text book image
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY
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