Thinking Like an Engineer: An Active Learning Approach (4th Edition)
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
4th Edition
ISBN: 9780134639673
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 18, Problem 23RQ

One of the 14 NAE Grand Challenges is Engineering Better Medicines. Part of this Grand Challenge is creating individual medication plans for each patient, rather than sweeping recommendations based upon research using only one subset of the population. For example, in the past most heart attack protocols were created for white mates. It has been discovered in recent years that women have different initial symptoms and respond better to a different treatment protocol than their male counterparts.

 To bettor tailor the medicine to the individual, you wish to write a computer program to allow the user to enter several variables. The program will then produce a suggested solution. Write the MATLAB code to:

a.    Ask the user to enter his or her name (text).

b.    Ask the user to type his or her weight (a number) in pounds-force.

c.    Ask the user to select his or her symptom from a menu, given the following choices.

 ■    Cold

 ■    Flu

■    Migraine

d.    Based upon the answer selected to the menu, set the medicine name, volume [mL] and mass [g] of the medicine tablet

Chapter 18, Problem 23RQ, One of the 14 NAE Grand Challenges is Engineering Better Medicines. Part of this Grand Challenge is

e.    Write (a) the function call from the program and (b) a function that will accept the mass and volume of the desired medicine from the main program and return the specific gravity of the desired medicine tablet to the program. Remember: The density of water is 1000 kilograms per cubic meter,

f.    Write (a) the function call from the program and (b) a function that will accept the weight of the person, specific gravity of the medicine, and tablet volume from the main program and return the number of tablets recommended for the person to the program. To determine the number of tablets needed, the following equation should be used and then rounded up to the next whole number of tablets. Any calculations or conversions necessary should appear in the function.

g.    Write an output statement that appears as follows, where N is replaced by the name of the medicine and x.xxx is replaced by the calculated specific gravity formatted to show three decimal places: The specific gravity of N is X.XXX.

h.    Write an output statement that appears as follows, where AAAA is the name of the user, n is the name of the medicine, yyy is the name of their symptom, and Z is the number of tablets recommended

AAAA, your recommended dosage of N to treat a YYY: Z tablets.

 Note

 Although you may use conditional statements to solve this problem, none are needed if you set up the medicine data table as a cell array.

Blurred answer
Students have asked these similar questions
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?
You own a wheat warehouse with a capacity of 20,000bushels. At the beginning of month 1, you have 6,000 bushels of wheat. Each month, wheat can be bought and sold at theprice per 1000 bushels given in Table 46.The sequence of events during each month is as follows:a You observe your initial stock of wheat.b You can sell any amount of wheat up to your initialstock at the current month’s selling price.c You can buy (at the current month’s buying price) asmuch wheat as you want, subject to the warehouse sizelimitation.Your goal is to formulate an LP that can be used to determine how to maximize the profit earned over the next 10months
Newton’s 2nd Law Lab (Modeling­ friendly lab)   Go to the PhET simulation Forces & Motion. https://phet.colorado.edu/sims/html/forces­and­motion­basics/latest/forces­and­motion­basics_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 –…

Chapter 18 Solutions

Thinking Like an Engineer: An Active Learning Approach (4th Edition)

Ch. 18.3 - Prob. 11CCCh. 18.3 - Assume a user has responded to the question "Do...Ch. 18.3 - Assume a user has responded to the question "Do...Ch. 18.4 - Write MATLAB code to represent the following...Ch. 18.4 - Write MATLAB code to represent the following...Ch. 18.4 - Write a MATLAB function named sumTtUp that will...Ch. 18.4 - Prob. 17CCCh. 18.5 - A device constructed to throw various objects can...Ch. 18.6 - Prob. 19CCCh. 18.6 - Prob. 20CCCh. 18.7 - Write MATLAB code to modify the previous gravity...Ch. 18.7 - Write MAT LAB code using try-catch to ask the user...Ch. 18 - Create a written algorithm and flowchart to...Ch. 18 - The Occupational Safety Health Administration...Ch. 18 - Prob. 3ICACh. 18 - Create a flowchart that represents the following...Ch. 18 - Create an algorithm to classify a given altitude...Ch. 18 - Answer the following questions. a. For what...Ch. 18 - Answer the following questions. a. For what...Ch. 18 - For each task listed, write a single MAT LAB...Ch. 18 - Prob. 9ICACh. 18 - What is stored in variable A after each of the...Ch. 18 - What will be displayed by the following code in...Ch. 18 - Ask users to enter a matrix that could be any size...Ch. 18 - A menu is generated using the following code:...Ch. 18 - A menu is generated using the following code:...Ch. 18 - Write a program using if-elseif-else statements...Ch. 18 - Write a program using switch-case statements that...Ch. 18 - Prob. 17ICACh. 18 - Write a program that asks the user to enter the...Ch. 18 - Prob. 19ICACh. 18 - Assume you are required to generate the menus...Ch. 18 - Assume you are required to generate the menus...Ch. 18 - Prob. 22ICACh. 18 - Assume you are required to generate the menus...Ch. 18 - We go to a state-of-the-art amusement park. All...Ch. 18 - A phase diagram for carbon and platinum is shown....Ch. 18 - Prob. 27ICACh. 18 - Prob. 28ICACh. 18 - Prob. 29ICACh. 18 - The Apple TV is a personal video device created by...Ch. 18 - Prob. 2RQCh. 18 - Prob. 3RQCh. 18 - Create an algorithm to determine whether a given...Ch. 18 - The specific gravity of gold is 19.3. Write a...Ch. 18 - An unmanned X-43A scramjet test vehicle has...Ch. 18 - A rod on the surface of Jupiter's moon Callisto...Ch. 18 - The Eco-Marathon is an annual competition...Ch. 18 - Assume a variable R contains a single number....Ch. 18 - Prob. 10RQCh. 18 - Create a program to determine whether a...Ch. 18 - Create a program to determine whether a given Mach...Ch. 18 - Humans can see electromagnetic radiation when the...Ch. 18 - For the protection of both the operator of a...Ch. 18 - Prob. 15RQCh. 18 - Prob. 17RQCh. 18 - Your function should use polyfit to determine the...Ch. 18 - Prob. 19RQCh. 18 - Prob. 20RQCh. 18 - The variable grade can have any real number value...Ch. 18 - Write a MATLAB program that will allow the student...Ch. 18 - One of the 14 NAE Grand Challenges is Engineering...Ch. 18 - Prob. 25RQ
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