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

Videos

Textbook Question
Book Icon
Chapter 17, Problem 6RQ

You are developing a program to record information about patients at a doctor’s office. Write the code to accomplish the following goals.

Section 1: Patient Information

Create a single-column cell array named Patients containing the names shown in the menu.

Determine the number of names in Patients and place the result in NumPat. Your code must determine how many names there are in Patients; DO NOT hard-code this value. Your code should still work correctly if the number of names stored in Patients changes.

Chapter 17, Problem 6RQ, You are developing a program to record information about patients at a doctors office. Write the

Ask the nurse to choose the patient name being seen during an office visit from a menu of patient names, located in the cell array Patients. A menu with the current five names is shown here as an example.

Ask the nurse to enter the selected patient’s weight in pounds. This numeric value should be placed in a column vector wt in the location corresponding to the location of that patient in the Patients cell array. For example, if the selected patient is Thomas Clemson, when the nurse types in his weight, the value will be placed in the fourth element of wt. Note that the nurse does not enter the location in the vector, the program takes care of that.

Create a text string named Gender consisting of a series of the letter X. The length of this text string should equal the number of names in Patients. For example, with the values stored in Patients given above, Gender would contain xxxxx.

Ask the nurse to enter the patient’s gender as a single letter chosen from M, F, T. (Some folks might argue vociferously concerning what categories should be included here, but this is just a homework assignment, not a philosophical discussion of gender identity and its classification, so chill out.) The letter typed by the nurse should REPLACE the corresponding X in the text string Gender. Thus if the nurse had selected Thomas Clemson and typed an M for gender, the text string Gender would then contain XXXMX , assuming no other patients’ information had been previously entered. Again, the nurse does not specify the location in the text string, the code does that.

Ask the nurse to enter the selected patient’s temperature [°F]. Place this numeric value in the corresponding element of a column vector named Temp. Thus if Thomas Clemson was selected and had a temperature of 98.7"F, the fourth element of Temp would then contain 98.7.

Section 2: Basic Report

Print a report on the screen similar to the following for the selected patient. Note that there is a blank line between the first line and the second line, and a blank line between the last line and the MATLAB prompt (>>). Also the last digit of the weight should be aligned beneath the "h" in "Weight", the gender identifier should be aligned under the letter d of "Gender", and the last digit of the temperature should be aligned under the "a" of "Temperature"

Patient: Thomas Clemson

Weight Gender Temperature

195 M 98.7

>>

Blurred answer
Students have asked these similar questions
A bacteria culture is known to grow at a rate proportional to the amount present. (a) Write down and solve a DE modeling this process. (Your solution will contain two unknown constants.) (b) After one hour, 1000 strands of the bacteria are observed in the culture; and after four hours, 3000 strands. Use this information to complete the determination of the DE. c) Find the approximate number of strands of the bacteria originally in the culture. (d) How long will it take to reach 10,000 strands of the bacteria in the culture.
2. (If relevant) A clearly labeled diagram (or diagrams) clearly pertaining to your analysis with a coordinate system and relevant labels. Final answer with appropriate units and significant figures. You can use the fprintf() command in MATLAB to format numerical results A 2-3 sentence reflection on your answer. Does it make sense? Why or why not? What are some implications?
The following tools / resources may be useful for you to complete the assignment:a. Chatgpt (You may use it to learn Matlab coding or any other computer language. An example is given here: https://shareg.pt/mXHGne9 ). Please take note that code generated by chatgpt can be directly copied and pasted.b. Matlabi) Useful cheat sheet (https://n.ethz.ch/~marcokre/download/ML-CheatSheet.pdf)ii) Getting started with Matlab (https://matlabacademy.mathworks.com/en/details/gettingstarted )iii) Getting 30-day Matlab trial license (https://www.mathworks.com/campaigns/products/trials.html ) iv) Polyfit (https://www.mathworks.com/help/matlab/ref/polyfit.html )v) Exponential Fit (https://www.mathworks.com/matlabcentral/answers/91159-how-do-i-fit-an-exponential-curve-to-my-data)c. PlotDigitizer (https://plotdigitizer.sourceforge.net/ ) or a free online app that does not requires installation (https://plotdigitizer.com/app )You may use your own engineering judgement to make any assumptions on any…

Chapter 17 Solutions

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

Ch. 17.3 - Prob. 11CCCh. 17.4 - Prob. 12CCCh. 17.4 - Prob. 13CCCh. 17.4 - Prob. 14CCCh. 17 - Write a MATLAB statement that results in the input...Ch. 17 - You are writing code that is part of a purchasing...Ch. 17 - For each question dialog described below, write a...Ch. 17 - For each input dialog described below, write a...Ch. 17 - For the following questions, assume z = 100/810....Ch. 17 - For the following questions, z = 100/810. Write...Ch. 17 - Assume that the following variables are stored in...Ch. 17 - Assume that a three-element row vector v already...Ch. 17 - The tiles on the space shuttle are constructed to...Ch. 17 - The specific gravity of acetic acid (vinegar) is...Ch. 17 - Write a MATLAB program that will allow a user to...Ch. 17 - Write a program that will allow the user to type a...Ch. 17 - In order to calculate the pressure in a flask,...Ch. 17 - Write a program that will allow the user to type...Ch. 17 - Use a question dialog to determine whether the...Ch. 17 - Write a MATLAB program that will ask users to...Ch. 17 - Write a program that asks a user to enter, one at...Ch. 17 - Joules first law, also known as the Joule effect,...Ch. 17 - Create a proper plot of the following set of...Ch. 17 - There is currently an effort in the United States...Ch. 17 - You want to create a graph showing the theoretical...Ch. 17 - In 1619, Johannes Kepler proposed his third law of...Ch. 17 - The decay of a radioactive isotope can be...Ch. 17 - Create a proper plot of the theoretical voltage...Ch. 17 - Plot the following functions as assigned by your...Ch. 17 - Plot the following functions as assigned by your...Ch. 17 - Prob. 28ICACh. 17 - Enter the following data into MATLAB. Graph the...Ch. 17 - If an object is heated, the temperature of the...Ch. 17 - The resistance of a typical carbon film resistor...Ch. 17 - Today, most traffic lights have a delayed green,...Ch. 17 - Cadmium sulfide (CdS) is a semiconducting material...Ch. 17 - Your supervisor has assigned you the task of...Ch. 17 - Three different diodes were tested: a constant...Ch. 17 - Design a program that will ask the user to enter...Ch. 17 - If a hot liquid in a container is left to cool,...Ch. 17 - You are an engineer working for M M / Mars...Ch. 17 - 1. The specific gravity of gold is 19.3. Write a...Ch. 17 - An unmanned X-43A scramjet test vehicle has...Ch. 17 - A rod on the surface of Jupiter's moon Callisto...Ch. 17 - The Eco-Marathon is an annual competition...Ch. 17 - Your company wishes to write a computer program...Ch. 17 - You are developing a program to record information...Ch. 17 - In a factory, various metal rods are forged and...Ch. 17 - Write a function and program to determine the mass...Ch. 17 - Write a program to calculate a temperature...Ch. 17 - You are part of an engineering firm on contract...Ch. 17 - You want to create a graph showing the...Ch. 17 - When one tries to stop a car, both the reaction...Ch. 17 - If an object is heated, the temperature of the...Ch. 17 - Capillary action draws liquid up a narrow tube...Ch. 17 - In a turbine, a device used for mixing, the power...Ch. 17 - A pilot tube is a device that measures the...Ch. 17 - Prob. 19RQCh. 17 - Download the weekly retail gasoline and diesel...Ch. 17 - A sample of the data provided in the Microsoft...Ch. 17 - An Excel file named DartTosses.xlsx has one...
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