
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
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 17, Problem 19ICA
A novice MATLAB user created the following code with poor choice of variable names. Correct the errors and fill in the blanks provided to comment this code to determine the purpose of the code.
Main | Program Comments |
T = [30, 45, 120, 150]; | (a) % T = |
Z = 2; | (b) % Z = |
% the purpose of the function DTOR is . . . | |
(c) % | |
[W] = DTOR (T) | (d) % W = |
% The purpose of the function PCAR is . . . | |
[X, Y] = PCAR (Z, W) | (e) % |
(f) % X = | |
(g) % Y = | |
function [A] = DTOR (T) | |
A = T*2*pi/360; | |
function (P, Q) = PCAR (M, N) | |
P = M * cos (N); | |
Q = M * sin(N); | |
(h) The output of this code, when run, is _____ |
Expert Solution & Answer

Want to see the full answer?
Check out a sample textbook solution
Students have asked these similar questions
this is an old practice exam, the answer is Ax = -4, Ay = -12,Az = 32.5, Bx= 34, Bz = 5, By = 0 but how?
This is an old practice exam, the answer is Ax = Az = 0, Ay = 2000, TDE = 4750, Cx = 2000, Cy = 2000, Cz = -800 but how?
this is an old practice exam, the answer is Fmin = 290.5lb but how
Chapter 17 Solutions
Thinking Like an Engineer
Ch. 17.1 - Prob. 1CCCh. 17.2 - What is the output when you pass in the value 10...Ch. 17.2 - Write a function named RAC that will accept two...Ch. 17 - Which of the following are not valid...Ch. 17 - Without running these code segments in MATLAB,...Ch. 17 - Prob. 3ICACh. 17 - ICA 17-4
Write a program to store the following...Ch. 17 - Write a MATLAB program to evaluate the following...Ch. 17 - Write a MATLAB program to evaluate the following...Ch. 17 - Write a MATLAB program to evaluate the following...
Ch. 17 - Prob. 8ICACh. 17 - Prob. 9ICACh. 17 - The Shockley diode equation gives the relationship...Ch. 17 - For each MATLAB code segment shown, write the...Ch. 17 - Prob. 12ICACh. 17 - A member of your team gives you the following...Ch. 17 - Prob. 14ICACh. 17 - Consider the following MATLAB program and...Ch. 17 - A novice MATLAB user created the following code...Ch. 17 - 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 Jupiters moon Callisto has...Ch. 17 - The Eco-Marathon is an annual competition...Ch. 17 - Write a program to determine the mass of oxygen...Ch. 17 - Write a program to convert a temperature provided...Ch. 17 - Write a program to determine how long, in units of...Ch. 17 - A cylindrical tank filled to a height of 25 feet...Ch. 17 - Write a MATLAB program that implements the...Ch. 17 - Write a MATLAB program that implements the...Ch. 17 - The specific gravity of gold is 19.3. Write a...Ch. 17 - An unmanned X-43A scramjet test vehicle has...Ch. 17 - Prob. 13RQCh. 17 - A cylindrical tank filled to a height of 25 feet...Ch. 17 - Write a function that implements the quadratic...Ch. 17 - Write a function that implements the Pythagorean...Ch. 17 - As part of a team investigating the effect of mass...Ch. 17 - We have made many measurements of coffee cooling...Ch. 17 - In a factory, various metal pieces are forged and...Ch. 17 - Prob. 21RQCh. 17 - Prob. 22RQCh. 17 - You have been assigned to a new project at work....Ch. 17 - You have been assigned to a new project at work....Ch. 17 - You have been assigned to a new project at work....
Knowledge Booster
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
- This is an exam review question. The answer is Pmin = 622.9 lb but whyarrow_forwardPlease do not use any AI tools to solve this question. I need a fully manual, step-by-step solution with clear explanations, as if it were done by a human tutor. No AI-generated responses, please.arrow_forwardPlease do not use any AI tools to solve this question. I need a fully manual, step-by-step solution with clear explanations, as if it were done by a human tutor. No AI-generated responses, please.arrow_forward
- Please do not use any AI tools to solve this question. I need a fully manual, step-by-step solution with clear explanations, as if it were done by a human tutor. No AI-generated responses, please.arrow_forwardThis is an old practice exam. Fce = 110lb and FBCD = 62 lb but whyarrow_forwardQuiz/An eccentrically loaded bracket is welded to the support as shown in Figure below. The load is static. The weld size for weld w1 is h1 = 4mm, for w2 h2 = 6mm, and for w3 is h3 =6.5 mm. Determine the safety factor (S.f) for the welds. F=29 kN. Use an AWS Electrode type (E100xx). 163 mm S 133 mm 140 mm Please solve the question above I solved the question but I'm sure the answer is wrong the link : https://drive.google.com/file/d/1w5UD2EPDiaKSx3W33aj Rv0olChuXtrQx/view?usp=sharingarrow_forward
- Q2: (15 Marks) A water-LiBr vapor absorption system incorporates a heat exchanger as shown in the figure. The temperatures of the evaporator, the absorber, the condenser, and the generator are 10°C, 25°C, 40°C, and 100°C respectively. The strong liquid leaving the pump is heated to 50°C in the heat exchanger. The refrigerant flow rate through the condenser is 0.12 kg/s. Calculate (i) the heat rejected in the absorber, and (ii) the COP of the cycle. Yo 8 XE-V lo 9 Pc 7 condenser 5 Qgen PG 100 Qabs Pe evaporator PRV 6 PA 10 3 generator heat exchanger 2 pump 185 absorberarrow_forwardQ5:(? Design the duct system of the figure below by using the balanced pressure method. The velocity in the duct attached to the AHU must not exceed 5m/s. The pressure loss for each diffuser is equal to 10Pa. 100CFM 100CFM 100CFM ☑ ☑ 40m AHU -16m- 8m- -12m- 57m 250CFM 40m -14m- 26m 36m ☑ 250CFMarrow_forwardA mass of ideal gas in a closed piston-cylinder system expands from 427 °C and 16 bar following the process law, pv1.36 = Constant (p times v to the power of 1.36 equals to a constant). For the gas, initial : final pressure ratio is 4:1 and the initial gas volume is 0.14 m³. The specific heat of the gas at constant pressure, Cp = 0.987 kJ/kg-K and the specific gas constant, R = 0.267 kJ/kg.K. Determine the change in total internal energy in the gas during the expansion. Enter your numerical answer in the answer box below in KILO JOULES (not in Joules) but do not enter the units. (There is no expected number of decimal points or significant figures).arrow_forward
- my ID# 016948724. Please solve this problem step by steparrow_forwardMy ID# 016948724 please find the forces for Fx=0: fy=0: fz=0: please help me to solve this problem step by steparrow_forwardMy ID# 016948724 please solve the proble step by step find the forces fx=o: fy=0; fz=0; and find shear moment and the bending moment diagran please draw the diagram for the shear and bending momentarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Principles of Heat Transfer (Activate Learning wi...Mechanical EngineeringISBN:9781305387102Author:Kreith, Frank; Manglik, Raj M.Publisher:Cengage LearningInternational Edition---engineering Mechanics: St...Mechanical EngineeringISBN:9781305501607Author:Andrew Pytel And Jaan KiusalaasPublisher:CENGAGE LRefrigeration and Air Conditioning Technology (Mi...Mechanical EngineeringISBN:9781305578296Author:John Tomczyk, Eugene Silberstein, Bill Whitman, Bill JohnsonPublisher:Cengage Learning
- Precision Machining Technology (MindTap Course Li...Mechanical EngineeringISBN:9781285444543Author:Peter J. Hoffman, Eric S. Hopewell, Brian JanesPublisher:Cengage LearningAutomotive Technology: A Systems Approach (MindTa...Mechanical EngineeringISBN:9781133612315Author:Jack Erjavec, Rob ThompsonPublisher:Cengage LearningUnderstanding Motor ControlsMechanical EngineeringISBN:9781337798686Author:Stephen L. HermanPublisher:Delmar Cengage Learning

Principles of Heat Transfer (Activate Learning wi...
Mechanical Engineering
ISBN:9781305387102
Author:Kreith, Frank; Manglik, Raj M.
Publisher:Cengage Learning

International Edition---engineering Mechanics: St...
Mechanical Engineering
ISBN:9781305501607
Author:Andrew Pytel And Jaan Kiusalaas
Publisher:CENGAGE L

Refrigeration and Air Conditioning Technology (Mi...
Mechanical Engineering
ISBN:9781305578296
Author:John Tomczyk, Eugene Silberstein, Bill Whitman, Bill Johnson
Publisher:Cengage Learning

Precision Machining Technology (MindTap Course Li...
Mechanical Engineering
ISBN:9781285444543
Author:Peter J. Hoffman, Eric S. Hopewell, Brian Janes
Publisher:Cengage Learning

Automotive Technology: A Systems Approach (MindTa...
Mechanical Engineering
ISBN:9781133612315
Author:Jack Erjavec, Rob Thompson
Publisher:Cengage Learning

Understanding Motor Controls
Mechanical Engineering
ISBN:9781337798686
Author:Stephen L. Herman
Publisher:Delmar Cengage Learning
Dimensional Analysis - in physics; Author: Jennifer Cash;https://www.youtube.com/watch?v=c_ZUnEUlTbM;License: Standard youtube license