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
Want to see the full answer?
Check out a sample textbook solutionChapter 18 Solutions
THINKING LIKE AN ENGINEER W/ACCESS
- Engineering Economy A company has determined the price and the monthly demand of its products are related by the equation D = √775 - p, where p is the price per unit in dollar and D, is the monthly demand. The associated fixed costs are $2,125 per month and the variable costs are $100/ unit. Use this information to answer the following: a)What is the optimal number of units that should be produced and sold each month? b) What is the maximum profit? c)Determine the value of D that represents the break-even point?arrow_forwardSuppose you're converting a bill of materials for machining feedstock from the British gravitational (U.S. system) of units to International System (SI) units. Your goal is to have all of the material quantities in kilograms. Your bill of materials lists values for required weights of brass rod in pounds. To convert to these values to kilograms you first you divide by gravitational acceleration in feet per second squared to get a mass in slugs, then convert slugs to kilograms using standard conversion factors. Group of answer choices True Falsearrow_forwardThe following table lists molecular weight data for a polypropylene material. Compute the number-average molecular weight, Molecular Weight Range (g/mol)//// xi////// wi 8,000–16,000//// 0.05/// 0.02 16,000–24,000 ///0.16// 0.10 24,000–32,000 ///0.24// 0.20 32,000–40,000 ///0.28// 0.30 40,000–48,000 ///0.20// 0.27 48,000–56,000 ///0.07// 0.11 Round your answer to 0 decimal places.arrow_forward
- Engr 215 Matlab Fahrenheit to Celsius using multiple statements Given a Fahrenheit value temperatureFahrenheit, write a statement that assigns temperatureCelsius with the equivalent Celsius value. While the equation is C = 5/9 * (F - 32), as an exercise use two statements, the first of which is "fractionalMultiplier = 5/9;"]arrow_forwardThermodynamics Answer the following problem with complete solutions. Write legibly A balloon is filled with pure oxygen at 10 ℃. The balloon is released from the bottom of a water-filled testing pool and floats 30 m to the water surface (where the atmospheric pressure is standard). The volume of the balloon is 3,000 cm^3. The temperature is 25 ℃ at the surface of the water, and the water temperature at the bottom of the pool is 10 ℃. What is the volume of the balloon at the surface after it has come into thermal equilibrium with the surroundingsarrow_forwardTRUE OR FALSE Directions: Choose true is the statement is correct, otherwise choose false. 1. Literature is not related to a certain region’s culture, tradition, history and people. 2. All written, oral, and multimedia forms of work are considered literature. 3. Poetry commonly utilizes rhymes and figures of speech while prose uses formal sentence structures. 4. Drama is delivered on a theatrical stage with actors and actresses. 5. Fictional works have the same elements of non-fictional works. 6. Facts, information, and statistics are focused on non-fictional works. 7. Human history and advancements were possible without the role literature. 8. The standard of universality conveys that literature must be perpetual and timely. It is forever relevant and it appeals to one and all, anytime, and anywhere. 9. Intellectual beauty expresses that a literary piece must stimulate thought about life and human nature, while suggestiveness pertains to how it evokes emotion of the reader. 10. All…arrow_forward
- Newton’s 2nd Law Lab (Modeling friendly lab) Go to the PhET simulation Forces & Motion. https://phet.colorado.edu/sims/html/forcesandmotionbasics/latest/forcesandmotionbasics_en.html Select “Acceleration” Click to show Forces, Sum of Forces, Values, Mass, and Acceleration. There are two experiments for this activity – make sure you include both. Experiment #1: Acceleration vs. Force In this lab you will determine the relationship between acceleration and net force. Choose a mass at the beginning, and keep it constant for this entire experiment. Set the friction to zero. This will make your Applied Force equal to the net force. Record data for five different values of Applied Force. Graph Acceleration vs. Net Force. Graph this in Google sheets(you want a line graph - it should only have one line). Make sure that Applied Force information is used as the x value Make sure that Acceleration information is used as the y value Add a trendline – see what fits best –…arrow_forward71.7 is being marked wrong in McGraw Hill homework. I thought I had done it right with putting 86.03 but that is wrong also. I'm not trying to just find the answer, trying to find how to do this. Could there be a different number than 71.7? Where does the μk=0.20 come into the equation?arrow_forwardA company makes electrical resistors. The perfect resistor has a value of 400 ohms. A sample of 2000 resistors was tested and found to have a mean of 391.5 ohms and a standard deviation of 22.5 ohms. Assuming a normal distribution:a. How many resistors in the sample will have more than 440 ohms of resistance?b. How many resistors in the sample will have less than 360 ohms of resistance? note: you can use the frequency distribution table picture I attached.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