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 15, Problem 7RQ

Assume a matrix named Prod contains data on production of various electronic devices at your company during several years. Each row of the matrix contains production data for a single year. The first element in each row contains the year, e.g., 2007 or 2012. The remaining elements in each represent the number of a specific part manufactured during that year. For example, the second element might contain the number of 2N3904 transistors produced during each year, whereas the fifth column might contain the number of IC555 timer chips produced. You may assume that corresponding elements in each row contain production numbers for the same type of device.

Write a single line of code to answer each of the following questions. You may use the results of any question to answer subsequent questions if desired. A sample Prod matrix is provided online. Note that your solution must work for any properly formatted matrix Prod.

a. Create a row vector TotalProd that contains the total number of years in the first element and the total number of each item produced during all listed years in the remaining elements. Note that TotalProd will have the same number of elements as the number of columns in the Prod matrix.

b. Create a row vector AvgProd that contains the total number of years in the first element and the average number of each item produced during all listed years in the remaining elements. Note that TotalProd will have the same number of elements as the number of columns in the Prod matrix.

c. Create a two-column matrix YearProd. The first column should contain the same years as those in the first column of Prod, and the second column should contain the total number of all units produced during each year.

d. Create a two-column matrix MaxProd. Determine the maximum number of any type of device produced during each year and place the results in the second column of the corresponding row in MaxProd. The first column should contain the years.

e. Determine the maximum number of any device produced during any year and place the result in the scalar OverallMax

f. If your company makes a profit of one-fifth of one cent on each device produced, regardless of type, determine the total profit made during all listed years and place the result in Profit. Your result should be in dollars.

g. The solution to this problem is considerably more complicated than the corresponding problem using vectors (Review Question 4). What is the major advantage gained by this extra complexity?

Blurred answer
Students have asked these similar questions
Scenario You are assigned a role as a mechanical engineer for a vehicle design manufacturing company. Your department has a software to perform numerical differentiation and integration. To be able to verify the results of using the software and validate these results, your department manager has asked you to analytically perform some tasks to validate the results generated by the software. Q: is the last two digits of your student Id number. If your number is (20110092) then Q=92. P: is the last digit of your student Id Number. If your number is (20110092) then P=2, If that digit equals zero then use P=1. Example: If your number is (20110040) then P=1. Task 1 Determine the gradient of following functions at the given points: a) x(t) = (2t7 + P t-2)² + (6vi – 5) when t = 1 5s+7 b) v(s) = when s = 3 (s²-P)2 c) i(t) = 5(1 – In(2t – 1) ) when t= 1 sec. d) V(t) =5sin(100nt + 0.2) Volts , find i(t) = 10 × x10-6 dV©) Ampere when t= 1ms. dt e) y(t) = e¬(t-n) sin(Qt + P) when t = n radian f)…
Row indexing: Snow fall records stateSnowRecord contains the amount of snow fall (in cm) for various cities. Rows represent a city and columns represent the snow fall for a given month. Assign citySnow Record with all elements of row rowNum. Ex: If stateSnowRecord is [17.3, 20.3; 4.8, 6.2] and rowNum is 2, then citySnowRecord is [4.8, 6.2]. Function > 6 % 7 % 8 9 10 11 12 13 end function citySnowRecord = Get CitySnowFall (stateSnowRecord, rowNum) 2% Get CitySnow Fall: Returns all snow fall values for city in row rowNum % 4 % Inputs: stateSnowRecord matrix of snow fall records for cities for various months rowNum specified row of stateSnowRecord to return stateSnowRecord = [17.3, 20.3; 4.8, 6.2] Outputs: citySnowRecord - all snow fall values for a given city % Assign citySnowRecord with all elements of a row rowNum. citySnowRecord = stateSnowRecord (rowNum, :); Code to call your function > 1 GetCitySnow Fall([17.3, 20.3; 4.8, 6.2], 2) Previous Assessment: 1 of 2 Tests Passed (50%) Save…
For Questions 3 and 4: A cup of water was heated to a temperature of 90°. It was placed in a refrigerator that had a temperature of 11°C. The water cooled to a temperature of 17°C in 30 minutes. Let the following variables represent the relevant quantities. L = Temperature of the liquid S= Temperature of the surroundings t = Time B = Initial temperature of the liquid (Temperature at t = 0 k = Cooling constant 3. Using the Equation Solver, find the value of k in the equation L = (B - S)e -kt + S. Remember to set the equation equal to zero and then enter it into the Solver.

Chapter 15 Solutions

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

Ch. 15.3 - a. Write a single MATLAB command that will create...Ch. 15.4 - a. Create the matrix CCM1=[180.34.11017] using a...Ch. 15.4 - Write single MATLAB statements to perform each of...Ch. 15.4 - Write single MATLAB statements to perform each of...Ch. 15.4 - Write single MATLAB statements to perform each of...Ch. 15.4 - Write single MATLAB statements to perform each of...Ch. 15.4 - For each of the following questions, write a...Ch. 15.5 - a. Create a variable named MTS containing the text...Ch. 15.6 - Assume a cell array named CA has three cells in a...Ch. 15.6 - Prob. 21CCCh. 15.7 - Create a structure array named Resistors...Ch. 15.7 - Use the data stored in MetalData to answer the...Ch. 15.7 - The structure array named Hdwr has the following...Ch. 15 - Which of the following are not valid MATLAB...Ch. 15 - Prob. 2ICACh. 15 - For the following questions, assume that the...Ch. 15 - For each calculation described below, write a...Ch. 15 - For each calculation described below, write a...Ch. 15 - For each of the vectors described below, write a...Ch. 15 - Assume the following vectors are already defined:...Ch. 15 - For each of the following sequences, write a...Ch. 15 - Modify the following statements so that they are...Ch. 15 - Assume you have three equal-length row vectors....Ch. 15 - Write the MATLAB code necessary to create the...Ch. 15 - For each of the following problems, write a single...Ch. 15 - Assume you have two equal-length row vectors IV1...Ch. 15 - Write the MATLAB code necessary to create the...Ch. 15 - Assuming t = [9 10; 11 12] and v = [2 4;6 8;10 12]...Ch. 15 - Determine solutions to the following problems a....Ch. 15 - For each of the following problems except part...Ch. 15 - Assume you have an N M matrix named Gonzo For...Ch. 15 - For each of the following tasks. write a single...Ch. 15 - Determine the contents of the variables created or...Ch. 15 - For each of the following tasks, write a single...Ch. 15 - For each of the following problems, write a single...Ch. 15 - Each of the following questions contains a...Ch. 15 - Prob. 25ICACh. 15 - Assume a cell array CA1 has already been defined....Ch. 15 - Prob. 27ICACh. 15 - You are setting up a structure array named client...Ch. 15 - You have three temperature values [C] stored in...Ch. 15 - You have N temperature values [C] stored in the...Ch. 15 - Assume four row vectors named Prod10, Prod11,...Ch. 15 - You have a 2 N matrix named GasData. The first...Ch. 15 - Assume the matrix M99 has at least two rows and at...Ch. 15 - Assume a matrix named Prod contains data on...Ch. 15 - You are studying the effects of climate change on...Ch. 15 - You are studying the properties of tiny spheres...Ch. 15 - Assume you have a four-column matrix named...Ch. 15 - One very old method of sending secret messages is...Ch. 15 - Prob. 13RQCh. 15 - Prob. 15RQCh. 15 - Refer to the specifications for Review Questions...
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
Heat Transfer – Conduction, Convection and Radiation; Author: NG Science;https://www.youtube.com/watch?v=Me60Ti0E_rY;License: Standard youtube license