Thinking Like an Engineer: An Active Learning Approach (3rd Edition)
Thinking Like an Engineer: An Active Learning Approach (3rd Edition)
3rd Edition
ISBN: 9780133593211
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 16, Problem 1RQ

Assume four row vectors named Prod10, Prod11, Prod12 and Prod13' contain data on production of various electronic devices at your company during the four years 2010, 2011, 2012, and 2013, respectively. The corresponding elements in each represent the number of a specific part manufactured during that year. For example, the first element might contain the number of 2N3904 transistors produced during each year, whereas the fifth element might contain the number of IC555 timer chips produced. You may assume all four vectors contain the same number of elements, corresponding to the same produced items.

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. Note that your solutions should work regardless of the number of elements in the four vectors.

  1. a. Create a new vector AvgProd that contains the total number of each item produced during the four-year period. Note that TotalProd will have the same number of elements as the original four vectors.
  2. b. Create a new vector AvgProd that contains the average number produced per year of each item during the four-year period. Note that AvgProd will have the same number of elements as the original four vectors.
  3. c. Create a four-element column vector YearProd that contains the total number of all units produced during each year, 2010 production should be in the first (top) element.
  4. d. Determine the maximum number of any type of device produced during each year and place the results in a four-element column vector MaxProd.
  5. e. Determine the maximum number of any device produced during any year and place the result in the scalar OverallMax.
  6. 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 this four-year period and place the result in Profit. Your result should be in dollars.
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
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