Thinking Like an Engineer
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
bartleby

Videos

Textbook Question
Book Icon
Chapter 20, Problem 13ICA

Write a function named Prodstate that will accept a matrix Prodstate that has at least one row and at least two columns. The rows each represent a different machine in a factory and the columns represent successive days of production. The value in each element is the number of units produced by that machine on the given day.

Prodstate should return a new matrix Trend with the same dimensions as prodstate and a row vector Trendium with three elements.

Each element of Trend indicates whether that day’s production for that machine was less than, equal to or greater than the previous day’s production for that machine. Since the first day (first column) does not have previous data upon which to base the comparison, the first column of Trend will arbitrarily be set to all zeros. All other elements will be set to either -1 (lower production that previous day), 0 (equal production to previous day), or 1 (higher production than previous day).

The first element of Trendrum contains the total number of days that production decreased (In other words, the number of negative ones in Trend), the second element of Trendrum contains the number of days with no change in production (zero in Trend, not counting the zeros on the first day), and the thirds element contains the number of days with higher production (ones in Trend).

Example:

ProdData = [ 1 2 4 4 5 4 7 8 9 0 1 5 9 8 5 6 7 7 ]

Trend = [ 0 1 1 0 1 1 0 1 1 1 1 1 0 1 1 1 1 0 ] TrendNum = [ 4 2 9 ]

Blurred answer
Students have asked these similar questions
Q41 (20 Marks) An ideal steam power plant works on regenerative cycle. Some steam (y1) is bled out between first and second stage and another portion (y2) is bled between second and third stages and feed the feed water heaters as shown in the following figures. In terms of enthalpies determine (1) y1 (2) y2 (3)the work at the first turbine (4) the work at the second turbine (5) the work at the third turbine (6) the work at the pump (FP1) (7) the work at the pump (FP2) (8) the work at the pump (CEP) (9) the heat received at the boiler (10) the rejected heat Boiler NY ST1 ST2 ST3 TI 52 Condenser CFWH OFWH 11 www 12 10 CEP FP FP
DONT USE ARTIFICIAL INTELLIGENCE
Q2] (20 Marks) A steam turbine with one open feed water heater (OFWH) as shown in the following figure. In terms of enthalpies and y determine: 1- Work of HPT 2- Work of LPT 3- Work at Pump1 4- Work at Pump2 5-The heat added at the boiler 6- The quantity (y) in terms of enthalpies 7-Heat extracted from condenser 5 Boiler 2岁 3 OFWH 9 Pump2 HPT LPT 8 Pump1 O Condenser

Chapter 20 Solutions

Thinking Like an Engineer

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