Concept explainers
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
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.
Trending nowThis is a popular solution!
Chapter 19 Solutions
Thinking Like an Engineer: An Active Learning Approach (3rd Edition)
- Please do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrow ideas from gpt, but please do not believe its answer.Very very grateful!Please do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrowideas from gpt, but please do not believe its answer.Very very grateful!arrow_forwardPlease do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrow ideas from gpt, but please do not believe its answer.Very very grateful!Please do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrowideas from gpt, but please do not believe its answer.Very very grateful!arrow_forwardPlease do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrow ideas from gpt, but please do not believe its answer.Very very grateful!Please do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrowideas from gpt, but please do not believe its answer.Very very grateful!arrow_forward
- Please do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrow ideas from gpt, but please do not believe its answer.Very very grateful!Please do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrowideas from gpt, but please do not believe its answer.Very very grateful!arrow_forwardPlease do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrow ideas from gpt, but please do not believe its answer.Very very grateful!Please do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrowideas from gpt, but please do not believe its answer.Very very grateful!arrow_forwardPlease solve, engineering econarrow_forward
- Please do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrow ideas from gpt, but please do not believe its answer.Very very grateful!Please do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrowideas from gpt, but please do not believe its answer.Very very grateful!arrow_forwardO You are running an industrial research study together with your project team to improve energy efficiency in a combustion process. The purpose of the research is to identify the optimum air-fuel ratio for the combustion process in a boiler under varying conditions of air supply and quality of fuel. The study would involve design of experiments, data collection and analysis, simulation of the different variables and validation of the optimum parameters. There is a lot of pressure to improve the energy efficiency as there is a forecast of fuel price rise in the forthcoming month. Based on the CRPE code of ethics, explain two critical precautions which the engineers have to consider before implementation of the data collection process for the industrial experiment. to be taken during the Describe briefly five ethical measures experimentaldata collection in order to ensure validity of results. Explain two precautions to be taken during the report writing on the research study carried out…arrow_forwardQ \Fill in the blank the correct word or phrase which is showing reason or result. 1) Large numbers of people from all over the world visit Petra, in Jordan, its beauty. A).so B).because of C).as a result D).because 2) One of the greatest achievements of Emperor Qin Shi Huang was the building of the first Great Wall of China to protect China from its enemies. Not all of his achievements were military, however, as he . introduced a common form of writing throughout the country. a.)in addition b.)plus c.)add d.)also 3) In ancient China, more than 700,000 workers and craftsmen took 38 years to complete the huge imperial palace, offices, and halls, all surrounded by a wall. Qin Shi Huang ordered an army to be built so that his palace would be protected. Emperor a.)add b.)also c.)plus d.)in addition 4 ) Historians are often required to learn languages such as latin read ancient manuscripts and inscriptions. a.)thus b.)as a result c.)in order to d.)therefore 5) In 79 CE Pompeii was covered…arrow_forward
- Please do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrow ideas from gpt, but please do not believe its answer.Very very grateful!Please do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrowideas from gpt, but please do not believe its answer.Very very grateful!arrow_forwardRead the summary below and answer the questions that follow: The Orange Girl – all the juice and nutrition you can ask for Growing up on a citrus farm in Mpumalanga, Yoliswa always wanted to escape to the city. In her little mind, she saw the farm life as the hardest endurance test any individual can be subjected to. She qualified with a mechanical engineering degree and started working in food manufacturing facilities in the city of Jo’burg. The conventional rat race in the city wore Yoliswa down a lot, she started escaping to the farm whenever she got a chance. One day, five years ago, on one of these visits, she found herself wandering on the farm, carried away in childhood memories of how she used to eat oranges directly from trees when they were in season. The farm owner had allowed Yoliswa’s parents to use a section of the farm to grow their own oranges for themselves. Her father decided to follow indigenous ways of growing oranges – his oranges always tasted sweeter, juicier…arrow_forwardAfter running the lab, you select an analysis point with the following properties: Atmospheric Pressure: 14.7 psia Compressor Inlet Pressure: 0.02 psig Compressor Exit Pressure: 7.24 psig • Turbine 1 Inlet Pressure: 7.42 psig • Turbine 1 Exit Pressure: 0.41 psig ● Compressor Inlet Temperature: 20.4°C Compressor Exit Temperature: 145.14°C • Turbine 1 Inlet Temperature: 532.9°C • Turbine 1 Exit Temperature: 488.48°C • Fuel Flow: 10.26 L/hr Engine RPM: 47,222 What is the velocity at the compressor inlet (m/s)? Your Answer: Answerarrow_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