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
Want to see the full answer?
Check out a sample textbook solutionChapter 15 Solutions
THINKING LIKE AN ENGINEER W/ACCESS
- You own a wheat warehouse with a capacity of 20,000bushels. At the beginning of month 1, you have 6,000 bushels of wheat. Each month, wheat can be bought and sold at theprice per 1000 bushels given in Table 46.The sequence of events during each month is as follows:a You observe your initial stock of wheat.b You can sell any amount of wheat up to your initialstock at the current month’s selling price.c You can buy (at the current month’s buying price) asmuch wheat as you want, subject to the warehouse sizelimitation.Your goal is to formulate an LP that can be used to determine how to maximize the profit earned over the next 10monthsarrow_forwardA 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.arrow_forwardThe title of our study is "Design and Fabrication of an Agricultural Spraying Attachment for an Autonomous Rover" we need help in the machine design part of our study, specifically Pump selection, battery selection, and center of gravity computation I already sent you the image of the rover Rover weight capacity 35 kilo grams (payload) Rover measurements: Wheel distance - 14.5 inches and 8.5 inches Rover platform size (width & length) 14.4 inches x 10.4 inches Height- 15.8 inches. Water tank selection More or less 25 liters *For tank selection we need to justify the size with the center of gravity, proving that is the maximum dimension or liters of the tank because the center of gravity will be higher making the rover prone to toppling Pump selection *Our sprayer design has two nozzles which splits using a tee splitter, we need to find the size of the pump to obtain the same discharge rate of a normal sprayer. A normal sprayer has a 12V pump and a pressure from 0.2 to 0.45 mpa…arrow_forward
- Posted below is a picture of a data table and a diagram of an experiment. In the experiment you rolled a marble down a ruler ramp off the end of a coffee table to observe projectiles and conservation of energy. You do 3 trials for each initial height. Each height is measured in meters. h= initial height of marble off of table Y= height of table off floor X= horizontal distance marble goes from edge of table to where it strikes the floor a) use the table to find information you need to solve for theoretical range and % of error in measured range.arrow_forwardNo need guideline answer ok. Solve both write RRL. ABOUT THESE 2 ITEMS. NOTE NO NEED EXTRA EXPLANATION ONLY NEED FOR OTH 1 PARAGRAPH EACH PUT REF END POINTS OK. DONT NEED GUIDELINE OKK. IF ANSWER GUIDELINE I WILL DISLIKE OKK 1. height of sweet potato plants; 2. programable speed of a rover: . something that says that a rover is programmed via speed, that it doesn't matter if the weight of the rover is decreasing from time to time. something that says that if you programmed a rover to go 5kph it will remain 5kph even if you put something heavy on it.arrow_forwardSeawater can be purified by distillation into potable water. If it costs 15 cents per kilowatt-hour for energy, what is the cost of energy to produce 100.0 gallons of drinking water at 100.0 ˚C if the seawater starts at 25.00 ˚C? (1 watt × 1 second = 1 joule). Enter your answer to the nearest penny.arrow_forward
- PLEASE ANSWER THEM ALL FOR AN UPVOTE. THANK YOU. Given: Pi constant to be used: 3.14159 Capillary tube: radius = 0.02 cm; length = 9 cm; pressure = 0.7 mmHg Liquid sample: density = 4 ml; time of flow = 4.5 seconds Ans. the ff questions. •What is the pressure in MKS unit? •What is the pressure in CGS unit? •What is the viscosity of the liquid? • If the weight was given as 8.5 grams, what will be the density of the liquid? •What is the kinematic viscosity of the liquid? •What is the fluidity of the liquid?arrow_forwardI wanted to create two spheres that overlap each other in MATLAB. The image has my code and results. I only see one sphere in the results. Why is that? Can you give me the code that will create two overlaying spheres in one plot?arrow_forwardHartley Electronics, Inc., in Nashville, producesshort runs of custom airwave scanners for the defense industry.The owner, Janet Hartley, has asked you to reduce inventory byintroducing a kanban system. After several hours of analysis, youdevelop the following data for scanner connectors used in onework cell. How many kanbans do you need for this connector?Daily demand 1,000 connectorsLead time 2 daysSafety stock 12 dayKanban size 500 connectorsarrow_forward
- Briefly explain each of the following block (one sentence or less)a) G96 S200 M03b) G00G42X20.0Z2.0c) G92 X59.0 Z-50.0 R-2.5 F0.25 d) G72 P10 Q20 U1.0 W0.5 F0.2arrow_forwardUse your matrix number by adding the last three digits to get the value of X on the velocityof plane A. The value of X will then need to be added with the digit of 150 as follows;Example; If your matrix number is AD190251,Velocity of plane A, VA = 150 + X km/hX = (2 + 5 + 1) = 8Therefore, the velocity of plane A, VA = 150 + X, = 150 + 8 = 158 km/h. SO MY LAST THREE DIGITS ARE: 008arrow_forward71.7 is being marked wrong in McGraw Hill homework. I thought I had done it right with putting 86.03 but that is wrong also. I'm not trying to just find the answer, trying to find how to do this. Could there be a different number than 71.7? Where does the μk=0.20 come into the equation?arrow_forward
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY