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

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 19, Problem 22RQ

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 19, Problem 22RQ, 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
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
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