
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)
- state is Derive an expression for the volume expansivity of a substance whose equation of RT P = v-b a v(v + b)TZ where a and b are empirical constants.arrow_forwardFor a gas whose equation of state is P(v-b)=RT, the specified heat difference Cp-Cv is equal to which of the following (show all work): (a) R (b) R-b (c) R+b (d) 0 (e) R(1+v/b)arrow_forwardof state is Derive an expression for the specific heat difference of a substance whose equation RT P = v-b a v(v + b)TZ where a and b are empirical constants.arrow_forward
- Temperature may alternatively be defined as T = ди v Prove that this definition reduces the net entropy change of two constant-volume systems filled with simple compressible substances to zero as the two systems approach thermal equilibrium.arrow_forwardUsing the Maxwell relations, determine a relation for equation of state is (P-a/v²) (v−b) = RT. Os for a gas whose av Tarrow_forward(◉ Homework#8arrow_forwardHomework#8arrow_forwardBox A has a mass of 15 kilograms and is attached to the 20 kilogram Box B using the cord and pulley system shown. The coefficient of kinetic friction between the boxes and surface is 0.2 and the moment of inertia of the pulley is 0.5 kg * m^ 2. After 2 seconds, how far do the boxes move? A бро Barrow_forwardBox A has a mass of 15 kilograms and is attached to the 20 kilogram Box B using the cord and pulley system shown. The coefficient of kinetic friction between the boxes and surface is 0.2 and the moment of inertia of the pulley is 0.5 kg * m^2. Both boxes are 0.25 m long and 0.25 m high. The cord is attached to the bottom of Box A and the middle of box B. After 2 seconds, how far do the boxes move? A From бро Barrow_forwardHomework#8arrow_forwardSign in PDF Lecture W09.pdf PDF MMB241 - Tutorial L9.pdf File C:/Users/KHULEKANI/Desktop/mmb241/MMB241%20-%20Tutorial%20L9.pdf II! Draw | I│Alla | Ask Copilot + of 4 D Topic: Kinetics of Particles: - Forces in dynamic system, Free body diagram, newton's laws of motion, and equations of motion. TQ1. The 10-kg block is subjected to the forces shown. In each case, determine its velocity when t=2s if v 0 when t=0 500 N F = (201) N 300 N (b) TQ2. The 10-kg block is subjected to the forces shown. In each case, determine its velocity at s-8 m if v = 3 m/s at s=0. Motion occurs to the right. 40 N F = (2.5 s) N 200 N 30 N (b) TQ3. Determine the initial acceleration of the 10-kg smooth collar. The spring has an unstretched length of 1 m. 1 σ Q ☆ Q 6 ا الى ☑arrow_forwardSign in PDF Lecture W09.pdf PDF MMB241 - Tutorial L9.pdf File C:/Users/KHULEKANI/Desktop/mmb241/MMB241%20-%20Tutorial%20L9.pdf II! Draw | I│Alla | Ask Copilot + 4 of 4 | D TQ9. If motor M exerts a force of F (10t 2 + 100) N determine the velocity of the 25-kg crate when t kinetic friction between the crate and the plane are μs The crate is initially at rest. on the cable, where t is in seconds, 4s. The coefficients of static and 0.3 and μk = 0.25, respectively. M 3 TQ10. The spring has a stiffness k = 200 N/m and is unstretched when the 25-kg block is at A. Determine the acceleration of the block when s = 0.4 m. The contact surface between the block and the plane is smooth. 0.3 m F= 100 N F= 100 N k = 200 N/m σ Q Q ☆ ا الى 6 ☑arrow_forwardarrow_back_iosSEE MORE QUESTIONSarrow_forward_iosRecommended 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 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 EducationControl 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