Thinking Like an Engineer
Thinking Like an Engineer
4th Edition
ISBN: 9781269910989
Author: Elizabeth A. Stephan, David R. Bowman, William J. Park, Benjamin L. Sill, Matthew W. Ohland
Publisher: Pearson Learning Solutions
bartleby

Videos

Textbook Question
Book Icon
Chapter 19, Problem 12ICA

We go to a state-of-the-art amusement park. All the rides in this amusement park contain biometric sensors that measure data about potential riders while they are standing in line. Assume the sensors can detect a rider’s age, height, weight, heart problems, and possible pregnancy. Help the engineers write the conditional statement for each ride at the park based on their safety specifications

  Variable Definitions:
A % Age of the potential rider (as an integer)
H % Height of the potential rider (as an integer)
HC % Heart condition status (‘yes if the person has a heart condition, ‘no’ otherwise)
P % Pregnancy status (1 if pregnant, 0 Otherwise)

a. The Spinning Beast: All riders must be 17 years or older and more than 62 inches tall and must not be pregnant or have a heart condition

if __________

fprintf (‘Sorry, you cannot ride this ride’);

end

b.    The Lame Train: All riders must be 8 years or younger and must not be taller than 40 inches

if __________

fprintf (‘Sorry, you cannot ride this ride’);

end

c.    The MATLAB House of Horror: All riders must be 17 years or older and must not have a heart condition.

if __________

fprintf (‘Welcome to the MATLAB House of Horror’);

end

d.    The Neck Snapper: All riders must be 16 years or older and more than 65 inches tall and must not be pregnant or have a heart condition

if __________

fprintf (‘Welcome to The Neck Snapper!’);

end

e.    The Bouncy Bunny: All riders must be between the ages of 3 and 6 (including those 3 and 6 years old)

if __________

fprintf (‘This ride is made just for you!’);

end

Blurred answer
Students have asked these similar questions
Q1/ A vertical, circular gate with water on one side as shown. Determine the total resultant force acting on the gate and the location of the center of pressure, use water specific weight 9.81 kN/m³ 1 m 4 m
I need handwritten solution with sketches for each
Given answers to be: i) 14.65 kN; 6.16 kN; 8.46 kN ii) 8.63 kN; 9.88 kN iii) Bearing 6315 for B1 & B2, or Bearing 6215 for B1

Chapter 19 Solutions

Thinking Like an Engineer

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
Dimensional Analysis - in physics; Author: Jennifer Cash;https://www.youtube.com/watch?v=c_ZUnEUlTbM;License: Standard youtube license